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
17
votes
3answers
1k 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 ...
14
votes
1answer
689 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 ...
13
votes
4answers
5k 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
4answers
1k 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 ...
12
votes
1answer
1k views

Do we have predictive search capability within Sitecore?

I'm looking for predictive search for content page in Sitecore. Something similar, what google search provide. Do we have anything like this?
12
votes
1answer
1k views

Incorrect dynamic field type for Droptree

Background: Sitecore 9, Solr 6.6.1 I have got a strange issue with incorrect resolution of field type by SOLR during item indexing. I read the following article about resolution a field names: ...
11
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....
11
votes
1answer
5k views

Multiple partial word search not working

I have implemented a global search on our website which gets the data result from _content field in solr indexes. Single word search works perfectly fine but I am currently facing an issue if I have ...
11
votes
2answers
1k 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 ...
10
votes
3answers
2k views

One index with multiple start locations

I have a custom SOLR index that I need to start from a few location, as to not include items I don't need. I thought the xml below was the proper location node for the index config, but it only crawls ...
10
votes
2answers
966 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
598 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 ...
10
votes
3answers
2k views

Filter number of fields returned from SOLR

We have a query that is running against our SOLR. The query is returning extremely slowly due to the number of fields and the amount of data in those fields. When the query runs, its adding the fl=* ...
10
votes
1answer
569 views

Display Facets With 0 Values

I'm working on a Lucene-based search page on Sitecore 8.1. I'd like to be able to display all facets and all facet values, even when there are 0 aggregate results for it. Currently, what I get back ...
9
votes
2answers
3k 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 ...
9
votes
2answers
3k 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
1answer
803 views

How does Sitecore update the Link Database?

I installed the Sitecore URL Rewrite Module for a client. The module worked properly in non-production environments. However, it did not work on production CD servers. The module uses the links ...
8
votes
1answer
551 views

In the “Select Media” dialog, where are the search facets defined at in Sitecore?

This is for Sitecore 8.1 Update 3. In the Select Media dialog that pops up on certain media fields (for example, clicking Browse on an image field), I want to know where the search facets are ...
8
votes
1answer
268 views

Crawling external data in Coveo

I have a DAM system that houses thousands of PDFs, and I am using Coveo for my site search. I want to allow these PDFs to be searchable from my site- how can I get them into an index? The only ...
8
votes
5answers
665 views

Error opening new searcher. exceeded limit of maxWarmingSearchers=2

I am relatively new to SOLR. We are using SOLR 6.1.0.1 with Sitecore 8.1 Update 3. There are roughly 50K items (content and files) being indexed. We are being plagued by poor throughput (through ...
8
votes
2answers
779 views

How do I add a new search filter to use with my Item Buckets?

I want to add a search filter which can be used for building search queries in Sitecore as per described in the documentation. The search filter should filter by inherited templates. I have followed ...
8
votes
2answers
963 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
8
votes
0answers
144 views

Virtual field not working with Azure

Currently I'm using facet to filter the search result. The result works perfectly with SOLR but when I switch to Azure it doesn't work anymore. The result shows all although I added filter criteria. ...
7
votes
4answers
6k 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 ...
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?
7
votes
1answer
535 views

How can I customize Search Result in SXA?

Out of the box SXA Search Results component shows only page Title. How can I customize that component to show page Image and Description?
7
votes
1answer
340 views

Experience Profile search - System.ArgumentOutOfRangeException errir

In Sitecore 8.1-3 when we go to Experience Profile and do a simple search sometimes (not all the time) we get zero results when we know that there are entries in the index and we see a message that ...
7
votes
1answer
1k views

How can I search for date field values on the Content Editor?

I have a website with Sitecore.NET 7.2 (rev. 160123). Using facets I see I can search for different things, and I have a few filters. However, I didn't manage to be able to filter for a date field on ...
7
votes
1answer
1k views

How to properly search Solr for any match on one stringCollection field and no matches on a second stringCollection field?

I have a Sitecore v8.1 site using Solr 4.10. Here is my index setup. First I have two custom fields defined in my index defined as follows: <field fieldName="read_roles" returnType="...
7
votes
1answer
114 views

Is there a way to modify the Solr query that gets generated by the Sitecore Content Search API before it gets sent to the search server?

I'm looking to add some parameters to my Solr query that's not currently supported by the Search API (hit highlighting to be specific). Is there a way (like a pipeline processor or something) to ...
7
votes
1answer
1k views

Azure Search and Date field filtering

I'm using 8.2 Update-3 and have deployed it to Azure with Sitecore's ARM template. I have indexed a page called Event Page. The Event Page has a DateTime field called Start Date on it. It is indexed ...
7
votes
2answers
807 views

Azure Search indexes are not created

We are seeing a lot of Depenendy Failures in Application Insights because some non exisiting Azure Search indexes are queried. The following indexes on Azure search return a 404: sitecore-marketing-...
7
votes
2answers
2k views

How to implement 'Did you mean?' - spell checker functionality like google in Sitecore using Lucene/Solr?

I have a requirement to implement google-like 'Did you mean?' functionalities. If user make a mistake in typing then I've to show 'Did you mean [correct search term]'. What is the best way in ...
7
votes
0answers
431 views

Solr Search Model doesn't work without the dynamic field suffix

I have ContentSearch code that works and runs fine using Lucene. When I switch the configs over to Solr, the query fails, and the logs state that the field I'm using in the query doesn't exist. [...
6
votes
3answers
1k views

Is there a “weighting” involved with Sitecore.ContentSearch.SearchTypes.SearchResultItem?

I have the following code to return a List of Items in a Lucene index: public List<Item> GetSearchResults(ISearchIndex index, string searchTerm = "") { var results = new List<Item>(); ...
6
votes
2answers
793 views

How to disable xDB related search indexes, when using CMS-only mode?

After disabling Sitecore xDB using the following two settings in the \App_Config\Include\Sitecore.Xdb.config file. <setting name="Xdb.Enabled" value="false" /> <setting name="Xdb.Tracking....
6
votes
1answer
2k views

Unable to serialize the session state. Sitecore.ContentSearch.SearchTypes.SearchResultItem

Introduction After implementing private and shared outProc sessions states, I'm receiving the following error. This is a Sitecore 8.1 Update 3 environment. We are using SOLR as our indexer. We are ...
6
votes
2answers
473 views

How to specify Solr core in search code for Sitecore 8.1

I recently upgraded from Sitecore v7.5 to v8.1. In addition my Solr configuration changed a little. On v7.5 I only had a single core. On v8.1 I now have many cores. After upgrading my search code ...
6
votes
2answers
3k views

Solr search with stemming

We are running Sitecore 8.0 and Solr 4.10.3. I'm trying to get text search working where if I search for play, player and plays are also returned in the search results. I can't find reference on how ...
6
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 '...
6
votes
3answers
390 views

How to configure the search Results Count component in SXA?

I've added a Results Count component to my search results page. Searching, autocompletion, page selector etc all works perfectly, but I cannot get the Results Count to show a number of found results; ...
6
votes
1answer
148 views

Using custom classes in LinqScratchPad.aspx

The problem The default/sample code in the LinqScratchPad.aspx shows a TryYourOwnClass class. Sadly, this class is not used in any way in the sample. The sample code looks like this: namespace Test ...
6
votes
1answer
202 views

Singleton search context for search api

Typical usage of search api uses a using statement to dispose of the search context. using (var context = ContentSearchManager.GetIndex(_indexName).CreateSearchContext()) { var hits = context....
6
votes
1answer
579 views

How to query for regEx matches in any value in a stringCollection field?

I have a computed field with returnType="stringCollection", which I am using via a search result model that looks something like this: public class MySearchResultItem : SearchResultItem { // ......
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 ...
6
votes
2answers
368 views

Master index updated even though manual strategy is set

I have changed update strategy for Master database to be "manual" rather than "sync", which to my understanding should not update "master" when data changes in master database. I can see in crawling ...
6
votes
1answer
995 views

In the ContentSearch Linq API what is the difference between the different string matching methods?

The Sitecore ContentSearch Linq API provides several methods that can be used to search against string fields in different ways: Like Matches MatchWildcard Contains StartsWith/EndsWith From the doc ...
6
votes
2answers
350 views

How do you boost fields such as Title or Navigation individually in SXA when using SOLR?

In our example, we have a Careers search feature in which we only want to match on title, job id, or a meta field such as description. One wonderful feature about SXA is that you have an easy-to-use ...
6
votes
1answer
499 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
738 views

Why Multilist with search is not showing data in case of data source content setup in multilingual?

We have found one issue when we add a data source to the field MULTILIST with search it works fine but in case if we add a new language version for that data source then it’s giving only first three ...