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
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 ...
0 votes
0 answers
59 views

SXA Search api doesn't work with Arabic facet value

I'm using Sitecore 9.3 and SXA 9.3, I use SXA OOB Search results components, when filtering with Arabic keyword in the facets, it doesn't bring data, although I checked the generated SOLR query, it ...
0 votes
1 answer
180 views

Filter search based on the page field of date type

In SXA Sitecore 93 I have a requirement to show items in search result, where date field on page is only greater than current date. I am trying to create a custom sxa token just like we have: ...
3 votes
2 answers
2k views

Results are not coming in the order using sortorder from lucene index

I have some items present in an item folder and want them to retrieve from Lucence index. There is a requirement that we have to order items in the Sitecore based on the order set on the Sitecore CMS, ...
0 votes
1 answer
108 views

GroupBy clause for both search providers (Solr, Azure)

Would like to use groupby clause in Sitecore 9.1.1 for both search provide (Azure, Solr) in content search API. However, Sitecore does not support this clause. Kindly let us know how we can group ...
2 votes
1 answer
300 views

Cannot search sxatags to find related items - 'undefined field sxatags'

Sitecore 9.3 with SXA. I'm trying to utilise sxa tags from the inherited _Taggable template to programmatically find related items with similar tags to the context item. That SXA template is /sitecore/...
0 votes
0 answers
575 views

Content search predicate with multiple conditions

Sitecore 9.3 I am trying to use 'predicates' to get a subset of data. When I have the code snippet as: using (var contextA = selectedIndex.CreateSearchContext()) { var predicate = PredicateBuilder....
1 vote
1 answer
279 views

Search API with multiple conditions

Sitecore 9.3 What I have till now: I am able to filter items based on a template using the search context. var unversionedImageTemplateId = ID.Parse(Constants.UnversionedImageTemplateId); var ...
0 votes
1 answer
415 views

Invalid Method Call Argument in Content Search

Sitecore version: 9.3 I am trying to fetch the media components with specific template and having a particular check-box selected using Sitecore query in my code. I tried the following code snippet: ...
1 vote
1 answer
170 views

How do I resolve the objectToSwitchTo error in Sitecore 9.3 with SXA on the ContentDelivery server?

I'm currently experiencing an issue in SXA where the log reports an error and no search results are returned. 3764 08:00:38 WARN Results endpoint exception Exception: System.ArgumentNullException ...
3 votes
1 answer
1k views

Handling special characters in SOLR search for sitecore 9.1

For a Dutch company, we implemented Sitecore SOLR search (Sitecore 9.1 and SOLR 7.2.1 ) with a requirement for the user to be able to search words with special Dutch characters for example if the user ...
0 votes
1 answer
781 views

Solr computed index field of type stringCollection not stored as expected

I've made a computed index field in my solution. The class returns List<string> from the ComputeFieldValue method and the config patch includes the field within the fieldMap and documentOptions ...
1 vote
1 answer
384 views

Re-use computed index field for multiple template fields

Is there a way to re-use the code for a computed index field without just making derived classes? I would like to have an additional property in the config which tells the ComputeFieldValue method ...
1 vote
1 answer
74 views

SXA JSON Results don't read from custom index

I'm using Sitecore 9.1 and SXA 1.8, I've created custom index instead of "sitecore_sxa_web_index", the Search Results component fetch data from the custom index and works fine, but the JSON ...
0 votes
1 answer
304 views

Invalid cast from 'System.String' to 'Sitecore.ContentSearch.IFieldMap' [closed]

Sitecore version: 9.3 In my SOLR, the name of my master core is M7_master_index. I am trying to get some result from Sitecore using search. So I am creating the SearchContext in the following ways: ...
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&...
0 votes
0 answers
35 views

One or several tag repositories for my site?

I have a Sitecore 9.0.2 site that contains a list of shops that are currently only searchable by shop name. We wish to improve the search feature by tagging up shops with: Product categories (e.g. ...
0 votes
1 answer
175 views

SXA Boosting by multiple query

I'm using Sitecore 9.1 and SXA 1.8, I'm using SXA boosting rule of where the field contains Search Box query, this rule doesn't work when the Search Box query is multiple words that are not in order. ...
2 votes
0 answers
111 views

Exact search in Azure search in Sitecore SXA

Using azure search in Sitecore SXA 1.7 and it is not fetching exact result likewise if we are using "Test data" in search box then it is showing result based which match "Test data ...
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=* ...
1 vote
1 answer
1k views

SOLR Spell checker not working well with multiple words

I'm using Solr 7.2.1, I'm trying to implement the 'Did you mean' feature, I've configured the spell check handler and it's working well, the issue is when trying with multiple words, if only one word ...
0 votes
0 answers
213 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 ...
3 votes
0 answers
247 views

Not able to fetch search result in Content search API with Solr and Azure

I am using content search API in Sitecore 9.1.1. However, it is not fetching result if i am using search with any of the template field. The below code fetching result based on template id but when we ...
2 votes
1 answer
1k views

Facet query returning 100 items max

Using Sitecore 9.2 with Solr on SearchStax. We have the Query.MaxItems value patched to 0, so finding a limit returned of 100 items is unexpected. We're setting up a number of dropdowns, using this ...
2 votes
1 answer
891 views

IndexingStateSwitcher Job Never Ends

We are suddenly experiencing a problem with Sitecore never starting up. It looks like the last meaningful line in the log is that the IndexingStateSwitcher job starts, however, it never ends. In our ...
2 votes
1 answer
2k views

"Lock held by this virtual machine" exception with Solr 6.6.1

For a customer i created a solution based on CMS Sitecore 8.2.7. The architecture is hosted on MS Azure infrastructure and basically consists of a Content Management VM (Windows Server 2016), two ...
1 vote
0 answers
47 views

SXA Filter API ignore the custom index

I'm using Sitecore 9.1 and SXA 1.8, I've created custom index for my site and it's working fine, the SXA OOB Search results API is using the custom index which is right But the SXA OOB Search filters ...
2 votes
1 answer
342 views

Use site specific search indexes configured on SXA site item in Content Search API

When making Content Search API calls, Sitecore resolves the index based on certain logic which is very well explained here. In SXA, we do have an option to configure the indexes on the site item, ...
1 vote
2 answers
450 views

Does Sitecore Content Search support group by clause?

Does Sitecore Content Search support group by clause? If yes then what are the namespace / references are needed?
3 votes
1 answer
662 views

Search the content of a PDF file uploaded in media library

I'm using sitecore 9.3. I have a case where i have some content files (ex: PDF files) uploaded to sitecore media library and I have a search box component. I need to configure my search box scope to ...
3 votes
1 answer
130 views

Custom index was not found error in in Azure Paas Content Delivery

My custom index "custom_index" was not found error is coming in Sitecore 8.2 on the Azure Paas CD environment. But the same custom_index is accessible in the CM environment. I'm using the Azure ...
2 votes
0 answers
119 views

Coveo Index Item Url Issue Using Sitecore 8.2 and Coveo 5.0

I am facing an issue with the Coveo index Item URL. After Coveo indexed on dev environment, item URL formation is in a right format like /en/za/news/news1 while on uat environment after Coveo indexed ...
1 vote
1 answer
284 views

Need to get the Search response time

I need to get the time taken for each response time for each search that we are making from the Sitecore. I've tried changing the log configuration of Search Log to Debug mode but the log doesn't have ...
1 vote
1 answer
117 views

SXA JSON results count is not in the response

I'm using Sitecore 9.1 and SXA 1.8, I created a JSON result and configured it as below: The JSON result response doesn't contain the results count, as in SXA search result component request-response, ...
1 vote
0 answers
105 views

Sitecore Spell checker neglect search scope

I'm using Sitecore 9.1 and SXA 1.8, I'm using Solr spell checker feature to fetch suggestions for a SXA search box that I use, the source of the suggestions is the field you specify in the ...
2 votes
1 answer
232 views

Embed query text in no results view text and result count text for SXA Search results component

Using Sitecore and SXA 9.3 For search, we need to include the query text in the result count message as well as the no results message. For example; for a search of 'bananas' it should say "5 results ...
3 votes
2 answers
328 views

Can I add a custom rendering for the out of the box search box and dropdown filter?

I want to create my own render variant for the search box and dropdown filters. I wantt to keep the functionality, but I want to change some of the markup and css classes. Is this possible, and how? I ...
5 votes
3 answers
1k views

Issue in SXA search scope: no results due to searchable_b:(True)

I am using SXA in Sitecore 9, I have created simple search scope with below query: template:{cbb0f1aa-1a19-4c0a-a897-49af144cb801};+location:{3F38A230-25BB-4DBA-B9D3-2CE94F842072} From UI there are ...
1 vote
2 answers
210 views

What is the functionality behind in Query and ContextFilterQuery in SuggestParameters class?

I'm working on the solr suggest module and I want to know about the Query and ContextFilterQuery in SuggestParameters class. Can anyone explain it? public class SuggestParameters { public ...
1 vote
0 answers
58 views

Search results signature is set to null in arabic language

I'm using sitecore 9.1.1 and SXA 1.8.1. My site have two languages: english and arabic. I've recently run into a problem which is the following: All the search results components stopped returning ...
1 vote
0 answers
544 views

How to exclude the results based on some templates in Solr/Suggest search?

I have a scenario that, I want to exclude some templates(Items that are based on these templates are need to be excluded) from solr Suggestion/autocomplete results. I did set a context field as ...
2 votes
0 answers
63 views

SXA search filters don't intersect itself

I'm using Sitecore 9.1 and SXA 1.8, I have checklist filter with data as seen: Individual has items : News3, News4, News7 Vacation has items : News3, News5, News6 When I choose these two options, ...
0 votes
0 answers
99 views

ContextFilterQuery is not working Solr suggest [duplicate]

I recently tried Solr autosuggest search in my local, Steps I followed : Added configuration in master in sensoft_master_index\conf\solrconfig.xml <requestHandler name="/suggest" class="solr....
1 vote
1 answer
713 views

Solr Suggestor is not working for sitecore master index

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, ...
1 vote
1 answer
255 views

Solr field level search

I'm working on the site search module where the user searches for a particular item. Currently, the site searches and matches only the item name. But I'm trying for searching the keyword in item ...
2 votes
1 answer
3k views

Could not create instance of type: Sitecore.ContentSearch.SolrProvider.SolrSearchIndex. No matching constructor was found

I'm trying to set up a local instance of an existing Sitecore 9.2 site. It's using Solr 7.5.0, and I set it up through SIA. When I try to load my site I get the following error: Could not create ...
1 vote
1 answer
464 views

How to get the __content index field value in solr search

I just created the site search module where I need to get all the pages that the user is looking for. I'm able to get the item name when content matches the search term, But also I need the content ...
2 votes
0 answers
90 views

Return Partial view inside search results rendering variant

I'm using Sitecore 9.1.1 with SXA 1.8.1. I have a search results component, I need to render a partial view inside a section in its rendering variant. I tried to add a Variant component for a custom ...
0 votes
0 answers
336 views

Sitecore SXA Search Multiple Dropdown List

Im new in Sitecore, long story short. I wanted to know how to create a multiple dropdown search(filter) in Sitecore SXA (not coding part). Sorry my English is not good hopefully you guys understand ...
3 votes
1 answer
2k views

ContentSearch predicates for filtering on a multilist field

I'm trying to figure out why certain code is needed in order for a content search query to work with Azure search. I have a multilist field which is indexed by the default indexer in Sitecore, meaning ...

1 2 3
4
5
11