Questions tagged [content-search]

Questions about searching (querying) Sitecore projects with the ContentSearch API. Use the Lucene or Solr (or Coveo) tags if the question is specific for any of those technologies.

Filter by
Sorted by
Tagged with
9
votes
2answers
4k views

Sitecore Full Content Search

We are using SOLR 5.4 and Sitecore 8.2 and we have implemented Full Content Search using _Content field which is displaying search result in Company Pages and various datasources linked to these ...
13
votes
1answer
953 views

What class indexes the _content index field

Until I answered a question wrong yesterday, I didn't know that the field _content in the index had the content of all indexable fields in Sitecore. You would have thought that would be the first ...
7
votes
3answers
3k views

There is no method 'GetResults' on type 'Sitecore.ContentSearch.Linq.QueryableExtensions' that matches the specified arguments

We are using Solr for indexing. We recently upgraded from Sitecore version 8.1 update 2 to 8.2 update 5. After upgrading when a search is performed we get the following error: There is no method '...
0
votes
2answers
217 views

How to filter solr suggestions only from particular path

I recently tried solr autosuggest search in my local, Steps I followed : Added configuration in master in sensoft_master_index\conf\solrconfig.xml Restarted solr8.1 service in services in C# code, ...
11
votes
2answers
2k views

Indexing PDF content with Solr error

I've been trying to get Solr configured right with Sitecore, but the one bit that's still causing background errors is indexing PDF content. I've been searching about and I'm not finding a clear-cut ...
9
votes
2answers
4k views

“Index sitecore_marketingdefinitions_master was not found” exception in Sitecore 9

Sometimes when we change config file or deploy new code, we see this exception on first load of page: Server Error in '/' Application. Index sitecore_marketingdefinitions_master was not found ...
8
votes
2answers
1k views

Sitecore SXA Search Result Sorting by date

How to sort/filter search result in Sitecore SXA by __created date or __updated date to retrieve recent search items
14
votes
4answers
7k views

Sitecore index update jobs getting stuck

I'm having trouble configuring a Sitecore 7.2 production environment and noticed some weird things on the CM environment.. After a few updates to the sitecore_master_index the jobs to update the ...
12
votes
1answer
2k views

How does Sitecore decide the Index to use with GetIndex

A new index was added to a Sitecore instance I am working on. This ended up causing a different module in the implementation to have a problem. The part having an issue uses Sitecore.ContentSearch....
3
votes
1answer
88 views

What parts of the Sitecore back-end are dependent on sitecore_master_index sitecore_web_index and sitecore_core_index

As per title; what functionality in the Sitecore back-end is dependent on the indexes sitecore_master_index sitecore_web_index sitecore_core_index
5
votes
1answer
1k views

Search component in SXA

I was playing around with the ootb search components in SXA and I got some results so yes, it's working. But now I wanted to know what was all included in the searchable content (apparently computed ...
4
votes
1answer
256 views

SOLR datetime fields not readable

In my SOLR index, all my datetime fields have encoding in them and not date data. I have compared my configs with a vanilla Sitecore 9.0.1 and find no differences. So it seems like it must be a ...
3
votes
2answers
303 views

How is the name of the primary index name stored when using SwitchOnRebuild in Azure Search?

We are using Azure Search for a custom index and I have SwitchOnRebuild enabled in my config patch. <!-- USE SWITCHONREBUILD Determines if Azure Search provider uses SwitchOnRebuild() ...
17
votes
3answers
2k views

Items with fallback language missing in Content Search index

On our Sitecore 8.1 Update-2 site we have configured two languages: English German (which should fallback to English) So we have configured language fallback and it works as it should. We have also ...
13
votes
4answers
2k views

What is the difference between an index and a search index

What is the difference between a regular index (e.g. sitecore_master_index) and a "search index"? Why do I see certain indexes under the Indexing Manager in Control Panel, yet different ones under ...
7
votes
2answers
1k views

Patching to remove index update strategies

While configuring cd instance on SOLR one has to remove index update strategies and set to manual from index definitions on cd server. Can we do that using sitecore patching?
0
votes
1answer
629 views

Where to check the index that is configured from SXA Search API?

When I request the url https://mydomain/sxa/search/results?q=test, below is the response {"TotalTime":259,"CountTime":211,"QueryTime":38,"Signature":null,"Index":"sitecore_sxa_web_index","Count":0,"...
10
votes
2answers
1k views

Gracefully handle Solr search connectivity issues

We had an issue recently where the Solr search servers went down and it took the site down too. Is there a way to handle this gracefully and keep the site up but just return an error message when the ...
10
votes
1answer
822 views

Is there a way to define index per site in SXA

There is a lot of reasons why I would like to have a separate index per site (or even per language). Some of them are: separation of data keeping the index small which increase performance not ...
4
votes
2answers
759 views

Programmatically adding items to a custom Solr Index

I'm trying to add some items to a custom Sitecore Solr index Programmatically via the Sitecore Content Search APIs. The items I will add won't reside in Sitecore so the code below is just a test for ...
4
votes
3answers
970 views

Multilist fields and Azure Search

I'm working on a Sitecore Azure PaaS instance using the Azure Marketplace ARM template which sets up Azure Search. For much of the project things are OK, but I'm having difficulty with Multilist ...
2
votes
1answer
1k views

Could not resolve type name error while performing search in Sitecore in Content tree

After logging to the Sitecore content tree, getting the below error while performing the search. An error occured while searching. Rephrase the query. Could not resolve type name: Sitecore....
2
votes
1answer
1k views

How to configure SXA Search Box to search based on Fields of a certain template?

I want to add a Search box in a blogging website, specifically on a page where all the blogs appear in a "search results" component. I've tried adding the SXA search box component and connecting it ...
2
votes
2answers
2k views

Searching a substring using solr

I am trying to move my code from Lucene to Solr, but am facing an issue. I have 4 fields indexed, all the field are of text_general type (from the managed schema). The code from Lucene is: ...
1
vote
1answer
294 views

How can I modify SXA search component to search also in the Accordions content?

I'm trying to modify Sitecore default behaviour to search also in accordions content. I have checked Is Displayed in Search Results at /sitecore/templates/Feature/Experience Accelerator/Composites/...
7
votes
4answers
8k views

Unable to connect to [http://localhost:8983/solr], Core: [mycore]

I am creating Solr Sitecore search index. After index was added to Solr and Sitecore configuration was updated to connect to it, I suddenly got yellow screen of death: Connection error to search ...
6
votes
1answer
640 views

Lucene: sort by numeric field

I am trying to sort results by a decimal field, but it doesn't work. I need to use the property name indexer on the standard SearchResultItem so that it can be dynamic. return queryable.OrderBy(i =&...
6
votes
1answer
1k views

“Multilist with Search” Field Does Not Return Search Results With Two Or More Items Selected

This is for Sitecore 8.1 Update 3, using Solr 5.5. It appears that in a Multilist with Search Field, if the field has two or more items currently selected (it does not matter whether the item has ...
4
votes
2answers
755 views

Buckets search page: Facets showing by guid. how to change that?

I have create a new facet for a categories field for a bucketable item. This field is a treelistex which means the user can select multiple categories for an item. Each category is an item with a ...
3
votes
1answer
2k views

How to search item content in a rendering with multilist fields

This question is about the best/simple way to achieve the website search functionality. There are pages in the site, and each is made up of few components. When the end user searches for a keyword, ...
3
votes
2answers
224 views

Solr tokenization to split on semicolon character

How do I go about configuring fields within a Solr index to be tokenized based on a semicolon ";" delimiter? Initially, I had fields configured as such: <field fieldName="example&...
3
votes
3answers
14k views

How to query Solr with spaces and slashes in the filters?

I have a Sitecore 8.1 instance using Solr 4.10. I have a custom field in my Solr index called read_roles. It is a list of Sitecore roles that can read a given item. Here is an example of what that ...
3
votes
1answer
279 views

Displaying SXA Search Results on the separate page

I'm currently working on SXA OOTB the Search Box and Search Result rendering. SXA sites structure is as below Sites Country Site 1 Country Site 2 Shared Site I have search box in the site header ...
3
votes
1answer
346 views

Getting the primary Azure Search Index name after index re-build

We are using Azure Search on Sitecore 8.2 update 7 and have enabled switch on rebuild. This is documented here: https://doc.sitecore.com/developers/91/platform-administration-and-architecture/en/zero-...
3
votes
3answers
712 views

Solr Issues Using Multilist Property on Search Result

I have a multilist field on article items called Categories. In a module I am trying to filter based on one or more items in that multilist field. I can do this if I directly supply the name of the ...
3
votes
2answers
641 views

Use the ItemService to perform a content search

quick background, got a standalone app (.exe) which imports "products" into a Sitecore site and basically i need to do a content search for a field on the external product e.g. productId (saved on the ...
2
votes
1answer
592 views

How to apply stop words at Solr query time?

I'm having some fun with Solr and here is my current issue. I've applied some stop words using the stopwords.txt file and rebuilt my indexes. Everything looks fine here, I can see that those stop ...
2
votes
1answer
134 views

Use the TermFreq() function programatically in Sitecore

I was building query on the basis of the occurence/relevancy of the terms present in a field and got one issue , suppose i searched for a keyword "text" in the content field , and i want to sort the ...
2
votes
1answer
112 views

Solr QueryElevationComponent component usage

I am hoping to use the Solr QueryElevationComponent for best bets on my site search. Hooking it up was easy enough, the biggest issue I have is _uniqueid field which is used by the component to ...
1
vote
0answers
153 views

Blog posts with Tag Cloud filter does not work on the search results - Sitecore 9.2 and SXA 1.9

I have created the blog component based on the below link https://alan-null.github.io/2017/12/sxa-blog Somehow, the filter does not work using the SXA tags. What I have done: Created Blog Module ...
1
vote
1answer
207 views

IS there a simple way to get the current Azure Search index name programatically?

I need to get the current active index name for Sitecore search for logging purposes. Because of the swap on rebuild functionality, I can't simply use the name field of the index, since on alternating ...
1
vote
3answers
349 views

Techniques and Rules to Eliminating Template fields from Indexing

I am investigating my site's indexing and looking at working around the Azure Search index 1000 field limit (see here Rebuilding Sitecore Core Index on Azure search throwing exceeding index limitation ...
1
vote
1answer
318 views

How to write a custom controller for Sitecore SXA Search Box component?

We are using Sitecore 9.0.2, SXA 1.8.1 and Azure search. The SXA component Search Box works perfectly fine. In our application, we need to show the search results from other application along with ...
1
vote
1answer
795 views

Items appear in SXA scope but not in search results

I'm using Sitecore 9, and SXA 1.7 I have a search scope that searches for certain items whose template is "blog page", in the scope query, I'm searching using the template and location, and I do get ...
1
vote
1answer
160 views

Content Search and Azure how to apply negative boost based on a checkbox value

I want to apply negative boosting to items, based on the value of an indexed checkbox field in order to move those items to the bottom of the search results. I am applying (positive) boosting to other ...
1
vote
2answers
552 views

Search results with starting date equal to Today

I need to search the content that has a date equal to today so that the search results component would only show the items that are only valid for today and later I'm using SXA 1.7
1
vote
0answers
542 views

Unit testing contentsearch with facets

I am trying to write a test for this code: var publicationYears = new List<string>(); using (var context = searchContextBuilder.GetSearchContext(Indexes.NewsIndex)) { var query = context....
0
votes
1answer
686 views

solr Sitecore full text indexing ifilter

I'm attempting to index the content of pdf's with Solr 6.6.2 and Sitecore 8.2 Update 6. I've got my solr indexes working correctly, and I'm able to search text from pages (content items) and I'm able ...
0
votes
0answers
102 views

Search checklist field data in the Content search API in Sitecore SXA

I would like to search checklist data through the Content search API in the Sitecore SXA. However, it is not searching any data based on checked value in checklist field. Sharing code : Template: Name ...
0
votes
1answer
494 views

Run personalization rule programatically

I have built a custom peronsalization rule that sets a theme against a component. Each user can also choose a site theme which is stored against a contact. I then want to use this logic to build up ...