As of May 31, 2023, we have updated our Code of Conduct.

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
212 views

Popular search keywords not being tracked

I am using Sitecore 9.3 and trying to track and display the popular search terms used on the website. However, I am not seeing the search keywords being tracked as intended in Internal search ...
Durga Bose's user avatar
1 vote
1 answer
301 views

How to apply a greater/less than DateTime query in Sitecore using the `IQueryable<ContentSearchResult>` Linq?

How do you apply a DateTime field comparison in Sitecore using the Sitecore.ContentSearch SDK? The ContentSearchResult[string key] function always returns a string which cannot be cast into a DateTime ...
Nikola Kramaric's user avatar
0 votes
0 answers
77 views

Getting error in Azure search ""Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"

We are getting result thorough content api using Azure search and solr. In Solr, everything is working fine but when we are trying to get result in Azure search then we are getting the below error
Ashu's user avatar
  • 402
0 votes
0 answers
93 views

Content search - An error has occurred and the search cannot be completed

When I search something in the Content search and it is not working, and the UI shows 0 results with a message on red background under the search bar "An error has occurred and the search cannot ...
iusmar's user avatar
  • 229
0 votes
1 answer
291 views

Finding literal spaces and dashes

I'm working with Sitecore 10.1 and SOLR 8.4.0. I am building a typeahead search that matches items (around 17,000) within a bucket in Sitecore. There are two fields in my template that can be matched, ...
rcurts's user avatar
  • 1
0 votes
1 answer
167 views

Boosting items by its own field values

I'm using Sitecore 9.3 and Solr 8.2.1, I had Solr index-time boosting in my old search implementation, but after I upgraded to a new Solr version, it is deprecated now. Imagine I have an item with ...
Mohamed Yaseen's user avatar
3 votes
1 answer
125 views

Sitecore.ContentSearch.Linq is adding backslash to all space characters in search query

Whenever I query using the Like query the Sitecore generated Solr query escapes the space characters. Here is an example: queryable = queryable.Where(result => result["...
Nikola Kramaric's user avatar
0 votes
1 answer
70 views

sxa custom boosting condition for dynamic value from cookie

We have a requirement where we want to boost results based on a value from a cookie/session. The items that contains the value from cookie in a Certain field should be boosted. Hence the rule should ...
Christopher Raja's user avatar
0 votes
2 answers
245 views

Content Search API issue with Droplist and Treelist fields

I am facing a weird(might not be weird for experienced people) issue where ContentSearch API is returning null value for few fields while I can see the correct values in Solr. The fields whose values ...
Mukesh Kumar's user avatar
1 vote
2 answers
201 views

Including the solr field in search result along with item fields in the Search result rendering variant

I am using sxa search result for rendering the service items which contain coordinates(lat-lang). We have got a new requirement where the same services may be available in different locations. Hence ...
Christopher Raja's user avatar
1 vote
1 answer
91 views

Rule based boosting at the field level

We are using Sitecore 9.1, Solr 7.7 and are NOT using SXA. I tried creating a boosting rule and associated the rule with the template. The rule is as below: where the page title field contains bills ...
Anthony Fernandes's user avatar
2 votes
1 answer
1k 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
  • 17.5k
0 votes
1 answer
348 views

Some records do not appear in multilist with search

I've got a multilist with search field in Sitecore 9.2 that does not return all of the items I know it should be. The field source is StartSearchLocation=[ID of folder]&Filter=_templatename:[...
Ken McAndrew's user avatar
  • 5,082
0 votes
1 answer
316 views

Could not find property 'IndexAllFields' on object of type: Sitecore.ContentSearch.SolrProvider.SolrIndexConfiguration

I have tried adding IndexAllFields as true in C:\inetpub\wwwroot\subway93sc.dev.local\App_Config\Sitecore\ContentSearch\Sitecore.ContentSearch.Solr.DefaultIndexConfiguration.config. But it does not ...
Sangeetha S's user avatar
0 votes
1 answer
69 views

CreateConnection method doesn't exits in DefaultSolrStartUp - Sitecore 9.3

I am in process of upgrading content serach Solr provider from Sitecore 8.2 to Sitecore 9.3. I am facing some code issue after upgraded the dll(Sitecore.ContentSearch.SolrProvider, Version=6.0.0.0) ...
Kanniyappan Krishnan's user avatar
0 votes
1 answer
119 views

SXA Search box is not showing Predictions for Chinese language in Sitecore 9.0.1

I am using Sitecore 9.0.1 with SXA 1.7 and Solr 6.6.2. I have added a search box component and search result component on the same page for a chinese language and also selected the ShowPrdeictions ...
Vinaya's user avatar
  • 321
2 votes
2 answers
396 views

Computed Field in Sitecore using Solr and Analyzers

I'm trying to use an analyzer on my computed field to allow searching with spaces. Nothing I've tried works yet. Any ideas? <contentSearch> <indexConfigurations> <...
gadgetgem's user avatar
0 votes
0 answers
32 views

Sitecore search to support pdf files [duplicate]

how to implement search to support pdf files? Is it possible with Sitecore 10 & Solr on azure pass?
ganesh's user avatar
  • 521
0 votes
0 answers
37 views

Commerce search results using multiist selection

We are migrating from Sitecore 8 to Sitecore 9. In Sitecore 8, we have a Multilist which has few values like Pending, Sold, Available or Not Available. When any value is selected, for-example if Sold ...
user avatar
0 votes
0 answers
101 views

Configuring synonym analyzer for lucene

My question is related to sitecore search / content search, which is a topic I'm not fully experienced with, so don't hesitate to correct me :) We just want to use the default Lucene indexer with a ...
Benjamin's user avatar
0 votes
1 answer
93 views

How to show the filter values in Chinese in Sitecore 9.0.1

I am using Sitecore 9.0.1 with SXA 1.7 .we have a requirement that the filter values should get displayed in chinese language. I have created a template with field color and data type multiroot tree ...
Vinaya's user avatar
  • 321
2 votes
0 answers
512 views

Sort By Grouping NumFound Field

Hello Sitecore Stack Exchange, Environments: Sitecore 9.2, Solr 7.5.0|SolrCloud 7.5.0, Custom search index. In the Search logic I have the next requirement: I should group search response and sort ...
Vadim Birkos's user avatar
1 vote
0 answers
199 views

Solr index rebuild on CD servers

I am working on a client applciation on sitecore 8.1 we have one CM and multiple CD server , The CM solr instance and CD solr instance are pointing to 2 seperate instances , configured as master and ...
SitecoreNoob's user avatar
2 votes
2 answers
341 views

Rebuild search index inside Sitecore 10.1 CMS not showing sitecore_web_index or sitecore_master_index or sitecore_web_core

I was trying to implement search functionality with Solr on Sitecore 10.1 instance. But I am not able to find the following default indexes: sitecore_web_index sitecore_master_index sitecore_web_core ...
Suman Baul's user avatar
2 votes
1 answer
48 views

Control the order of indexes during rebuild

I have the following scenario implemented in sitecore 9.2 and which uses azure search: index1 is configured to index around 100k items under /sitecore/content/shared/data index2 is indexing around ...
Cristi Vulturar's user avatar
2 votes
0 answers
491 views

Filtering Solr search results based on score

I'm trying to figure out a way to apply a filter on result scores. E.g. I want only results with score >50. In pure Solr, that is solved by using a filter query. Adding the following to the query ...
mcsdwarken's user avatar
2 votes
1 answer
270 views

Droplist field type and Drop link field both are showing Item ID in sitecore 9.0.1

I am using sitecore 9.0.1 and sxa version 1.7. I have created a custom template with field type Drop link for the search functionality and created a rendering varient for it .But it is displaying Item ...
Vinaya's user avatar
  • 321
0 votes
2 answers
426 views

Sitecore 9.3 Solr ContentSearch does not get the right language

I have a site with the language english (en -> default language) and portuguese (pt-BR). Now I have the problem that on the portugese website there are shown items of the english language version. ...
dave_26456's user avatar
2 votes
1 answer
135 views

How to make a cache exist for the duration of an indexing operation

Is there a way to create a Sitecore custom cache which exists for the duration of an indexing operation. I would like to store frequently looked up relationships which can be re-used by different ...
Matthew Dresser's user avatar
0 votes
1 answer
130 views

Is it necessary to create sxa cores in solr 6.6.2

I am Newbie to Sitecore 9.0.1. I am building a SXA site for search functionality. Setting up of Sitecore and Solr 6.6.2 is done and I have installed SXA 1.7. Does the cores should be created for SXA ...
Vinaya's user avatar
  • 321
1 vote
1 answer
364 views

Does Re-Index Tree command in Content Editor always cause a recreation of Solr documents

I'm using the "Re-Index Tree" button in the Content Editor (Developer toolbar). I run a query in Solr admin just after to examine the indexed document and for some reason, the ...
Matthew Dresser's user avatar
3 votes
1 answer
308 views

How to exclude an item based on template when using find-item in Powershell

I'm working on this script: $criteria = @( @{Filter = "NotEquals"; Field = "_template"; Value = "{A87A00B1-E6DB-45AB-8B54-636FEC3B5523}"} ) $props = @{ Index = &...
Borj's user avatar
  • 145
0 votes
2 answers
202 views

Where to get Azure search query logs to check a query?

We are using Azure search to get the Sitecore items based on some filter conditions passed as predicate. This condition is not working with Azure Search in our dev environment. We have to check the ...
Deepak Sharma's user avatar
0 votes
1 answer
143 views

SXA Search scope dynamically passing facet information

We have a requirement where we need to display the first two news items (sorted by time) and along with it there will be a link to view the rest of the news as well (this is page 1). If they click on ...
Karthik Raghavan's user avatar
1 vote
1 answer
614 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
0 votes
0 answers
47 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 ...
Mohamed Yaseen's user avatar
2 votes
3 answers
442 views

Sitecore SXA search result count in scriban

Is there a way to read the search results count in a Scriban template in a rendering variant of SearchResult in SXA? I have a requirement that if the search results count is less than 6 the result ...
Christopher Raja's user avatar
2 votes
0 answers
183 views

Sxa custom search token query for date range is not working in azure search service

I have Sitecore 9.3 SXA with Azure search in our application. We are trying to create a custom SXA search token to filter upcoming events starting from the current date. In the code am trying to pass ...
user1920875's user avatar
0 votes
1 answer
398 views

Could not map index document field to property "Paths" on type Sitecore.ContentSearch.SearchTypes.SearchResultItem

Has anyone seen this error in the logs Could not map index document field to property "Paths" on type Sitecore.ContentSearch.SearchTypes.SearchResultItem. Guid should contain 32 digits with ...
Naveed Ahmad's user avatar
1 vote
1 answer
534 views

Custom SXA search query Token is not behaving as expected

I have being working on Sitecore 93 SXA, and I'm creating a sxa search query token by extending pipeline ResolveSearchQueryTokensProcessor referring this blog to get the date field of item and compare ...
Tabbuu's user avatar
  • 65
-1 votes
1 answer
451 views

Create LINQ to SOLR expression to get intersection or empty

Project computes semantic field with list of tags (stringArray). Requirement is to search for items that tag list intersect with given set of tags. But also if the item tags list is empty we would ...
gringo_dave's user avatar
0 votes
1 answer
150 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: ...
Tabbuu's user avatar
  • 65
3 votes
2 answers
672 views

Boosting Search Results

I was disheartened to see this in the Sitecore docs: Important Search result boosting works in Solr version 6.6 or earlier, but Solr changed the implementation in Solr 7, and later versions. ...
Ethan Schofer's user avatar
0 votes
1 answer
120 views

Create a predicate matching 2 lists

I have a multilist field (Product Category). I am getting a list of Product Category from the session. How can i write a predicate to filter all those items which has one common category without ...
Barada behura's user avatar
0 votes
0 answers
138 views

No Results in Scope query(Build Search Query displaying no results)

I am adding scope into site under tenant in sitecore 9.3, When I build query in Build Search Query, it always shows 0 results. I also inherited templates from _Searchable template. Indexes also added ...
Mahendra's user avatar
0 votes
1 answer
94 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 ...
Ashu's user avatar
  • 402
2 votes
1 answer
264 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/...
Paul George's user avatar
0 votes
0 answers
369 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....
NutsAndBolts's user avatar
  • 1,268
1 vote
1 answer
205 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 ...
NutsAndBolts's user avatar
  • 1,268
0 votes
1 answer
291 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: ...
NutsAndBolts's user avatar
  • 1,268

1
2
3 4 5
11