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
13 votes
1 answer
1k 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 ...
Chris Auer's user avatar
  • 13.1k
8 votes
2 answers
2k 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
mahboob's user avatar
  • 83
11 votes
2 answers
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 ...
Ken McAndrew's user avatar
  • 5,102
10 votes
2 answers
5k 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 ...
user2332873's user avatar
7 votes
3 answers
4k 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 '...
Geoff Warren's user avatar
1 vote
3 answers
1k 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, ...
Rajasekar's user avatar
  • 692
1 vote
1 answer
446 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/...
Jorge Romeo's user avatar
15 votes
4 answers
9k 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 ...
Ian Graham's user avatar
  • 1,033
12 votes
1 answer
4k 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....
Teeknow's user avatar
  • 2,477
9 votes
2 answers
5k 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 ...
Peter Procházka's user avatar
5 votes
1 answer
426 views

How do you perform a ContentSearch using the "MoreLikeThis" handler?

We have a Solr index and using the standard Linq queries. I noticed that Sitecore supports Solr features like Suggester or Highlighter, but I did not find anything about MoreLikeThis feature. I'm ...
Matthew Butler's user avatar
5 votes
1 answer
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 ...
Gatogordo's user avatar
  • 20.1k
4 votes
1 answer
593 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 ...
Chris Auer's user avatar
  • 13.1k
3 votes
2 answers
447 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() ...
Adam Seabridge's user avatar
3 votes
1 answer
107 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
Matthew Dresser's user avatar
2 votes
2 answers
2k 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 ...
Mie ElMansy's user avatar
0 votes
1 answer
288 views

Sitecore search for users

I've been doing some research on doing a search of the user base, using profile values for querying. I know there's a sitecore_core_index which in theory would cover that, but I'm guessing it's not ...
Ken McAndrew's user avatar
  • 5,102
17 votes
3 answers
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 ...
Kevin Brechbühl's user avatar
13 votes
4 answers
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 ...
Kasaku's user avatar
  • 4,164
10 votes
1 answer
1k 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 ...
Dawid Rutkowski's user avatar
10 votes
2 answers
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 ...
Adam Seabridge's user avatar
8 votes
2 answers
2k 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?
Andrey Bobrov's user avatar
7 votes
4 answers
11k 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 ...
Dmitry Harnitski's user avatar
6 votes
1 answer
849 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 =&...
David Masters's user avatar
6 votes
1 answer
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 ...
Justin Laster's user avatar
6 votes
1 answer
1k views

What is the best way to store a single Sitecore field into two Solr index fields with different types?

I have a Category field in sitecore and it is currently stored as a text_general in Solr. It has this type because I need it to be tokenized and lowercase for searching. On the other hand I need to ...
Bartłomiej Mucha's user avatar
5 votes
2 answers
2k 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 ...
Adam Seabridge's user avatar
5 votes
1 answer
1k views

What's the difference between a Virtual Field and a Computed Field?

I've been using computed fields forever when I need to build a custom type of functionality that doesn't exist as a physical field in Sitecore when using ContentSearch, but I was just reading about ...
Dylan Young's user avatar
  • 4,314
5 votes
3 answers
20k 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 ...
Corey Burnett's user avatar
4 votes
2 answers
955 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 ...
Diego's user avatar
  • 5,688
4 votes
2 answers
1k 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&...
Matthew Dresser's user avatar
4 votes
1 answer
769 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 ...
Mohit Dharmadhikari's user avatar
4 votes
3 answers
1k 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 ...
Kevin's user avatar
  • 951
3 votes
1 answer
493 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-...
Adam Seabridge's user avatar
3 votes
1 answer
307 views

In solr Master-Slave configuration custom indexes are getting out of sync sometimes in one of the slave servers

In our production environment, we have Master-Slave SOLR server configuration. We have 2 SOLR slave servers and configured SOLR load balancing URLs in prod CM and CD servers. Right now we are facing ...
Ruchi Gupta's user avatar
3 votes
2 answers
886 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 ...
denford mutseriwa's user avatar
3 votes
3 answers
1k 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 ...
Teeknow's user avatar
  • 2,477
3 votes
1 answer
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, ...
sukesh's user avatar
  • 3,129
2 votes
1 answer
366 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 ...
Rohan Bhateja's user avatar
2 votes
1 answer
2k views

How do you create a scriban function which implements the Content Search API?

I've seen examples such as here on how to create a custom Scriban function. How would I go about implementing one which supports the Content Search API like that shown here? Example: Function called ...
Michael West's user avatar
  • 18.2k
2 votes
2 answers
2k 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 ...
Hugo Santos's user avatar
  • 2,311
2 votes
1 answer
2k 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....
Pushpendra Vats's user avatar
2 votes
2 answers
335 views

Refreshing single document in ContentSearch/Solr index using IndexCustodian?

I have a working custom index configured, it includes some custom fields and has specifically included fields and templates to keep it light. It uses the default SitecoreItemCrawler. I'm on 10.1 ...
geedubb's user avatar
  • 153
2 votes
2 answers
6k 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: ...
Rohan Bhateja's user avatar
2 votes
1 answer
3k views

Rebuilding Indexes with SOLR throws Exceptions

I set up a fresh Sitecore 9.1 with SXA on my local machine. When rebuilding the indexes, I get the following messages: (Core) 19676 14:50:03 WARN Could not compute value for ...
Lars-Pascal Körber's user avatar
2 votes
1 answer
159 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 ...
PatMac's user avatar
  • 95
2 votes
1 answer
329 views

How to create an anchor tag of General Link field

We are getting results through Content Search API and getting the General Link field value into it. We would like to add an anchor link based on a general link field value. Do we have the default ...
Ashu's user avatar
  • 402
1 vote
0 answers
782 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....
Gatogordo's user avatar
  • 20.1k
1 vote
1 answer
57 views

Order search results by frequency of the search item in a list of fields in Solr

We have a requirement to order search results based on the number of occurrence of the search term in a list of fields(not all the fields). We tried the below query in sort, but this does not provide ...
D J's user avatar
  • 385
1 vote
1 answer
736 views

Create custom facet for Sitecore SXA search filter

I have to apply the SXA search Checklist filter component on a search result by the product type (which is a single line text field). Can anyone please provide any information or useful links on how ...
Barada behura's user avatar