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
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
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
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
13 votes
2 answers
3k 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: ...
Artem Prashkovich's user avatar
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
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
12 votes
1 answer
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?
Santosh Poojari's user avatar
12 votes
3 answers
3k 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=* ...
John Kurtis's user avatar
11 votes
3 answers
3k 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 ...
Chris Auer's user avatar
  • 13.1k
11 votes
1 answer
8k 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 ...
Meenakshi's user avatar
  • 235
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
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
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
1 answer
861 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 ...
Ben Lipson's user avatar
  • 1,382
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
9 votes
2 answers
2k 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. [...
Sean Holmesby's user avatar
9 votes
0 answers
216 views

Virtual field not working with Azure

Currently, I'm using facet to filter the search result. The result works perfectly fine with SOLR but when I switch to Azure it doesn't work anymore. The result shows all although I added filter ...
user1979636'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
8 votes
1 answer
1k 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 ...
Ed Schwehm's user avatar
  • 3,036
8 votes
1 answer
920 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 ...
Justin Laster's user avatar
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
8 votes
1 answer
365 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 ...
jdylanmc's user avatar
  • 1,492
8 votes
5 answers
2k 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 ...
Mikeyp's user avatar
  • 355
8 votes
1 answer
2k 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 ...
Ben Golden's user avatar
  • 3,313
8 votes
2 answers
1k 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 ...
AndreasPK's user avatar
  • 615
8 votes
1 answer
3k 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="...
Corey Burnett'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
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
7 votes
1 answer
1k 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?
Dmitry Harnitski's user avatar
7 votes
2 answers
809 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 ...
Michael West's user avatar
  • 18.2k
7 votes
1 answer
464 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 ...
Corey Burnett's user avatar
7 votes
3 answers
2k views

Could not find add method: AddIndex (type: Sitecore.ContentSearch.ContentSearchConfiguration)

We are setting up a new Sitecore 9.3 instance on a server, making the respective connection string changes and getting the below error while loading the Sitecore login page: Error: Could not find add ...
Geetha's user avatar
  • 123
7 votes
1 answer
2k 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 ...
SysDragon's user avatar
  • 333
7 votes
1 answer
234 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 ...
George Chang's user avatar
  • 1,225
7 votes
1 answer
3k 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 ...
jonasag's user avatar
  • 533
7 votes
2 answers
2k 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-...
Luuk's user avatar
  • 375
7 votes
2 answers
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 ...
Sandeep's user avatar
  • 785
7 votes
2 answers
470 views

"Search Tab" for "File" data type gives "The media item could not be found"

I have a structure in which we have a field defined as "File" data type. The requirement is to point this to a specific location within "Media Library". We have done this by specifying guid of the ...
Ramesh's user avatar
  • 149
6 votes
3 answers
2k 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>(); ...
eat-sleep-code's user avatar
6 votes
2 answers
1k 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....
ob1dev's user avatar
  • 1,088
6 votes
2 answers
4k 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 ...
Gabbar's user avatar
  • 608
6 votes
1 answer
3k 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 ...
Pete Navarra's user avatar
  • 14.6k
6 votes
2 answers
547 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 ...
Corey Burnett's user avatar
6 votes
2 answers
8k views

SOLR search not returning results [closed]

I am new to SOLR search. I have created all cores and index and SOLR UI is showing that documens have been indexed. I have copied the working core folder and renamed it and also updated in ...
Ali's user avatar
  • 391
6 votes
3 answers
733 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; ...
Mark-Danney's user avatar
6 votes
2 answers
386 views

Solr auto-suggest brings all data in the website

I'm using Solr auto-suggest with the SXA search box, it's working perfect but with two issues, first it brings suggestion for all data in the site without any limitation, I want to limit to a search ...
Mohamed Mosa's user avatar
6 votes
1 answer
284 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....
Paul George'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
6 votes
1 answer
242 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 ...
n-develop's user avatar
  • 275

1
2 3 4 5
11