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

Is there a way to do a search in Sitecore against with Lucene using a dynamic field?

My client needs me to write a speak app that can do a search where they can type in whatever field they want to equal a value in the search bar. Is there a way to do a search against Lucene to within ...
Robert Michael Watson's user avatar
1 vote
1 answer
289 views

Could SocketException be caused by CloudSearchRetryPolicy?

I'm investigating an issue where we are seeing SocketExceptions and socket handle leaks. Using Sitecore 8.2 rev 107614, in Azure using Azure Search as the search provider. Drilling down to one of the ...
Matthew Dresser's user avatar
1 vote
2 answers
1k views

Failed to execute datasource query System.NullReferenceException while setting Datasource on Rendering

Has anyone seen this error before or know how to solve it? 996 16:35:46 WARN Failed to execute datasource query System.NullReferenceException: Object reference not set to an instance of an ...
Michael Edwards's user avatar
1 vote
2 answers
514 views

Lucene for multiple server scenario

I have been told that when there are load balancers and multiple servers, lucene will not work. Is there an alternative that we can still use Lucene as the search engine.
sukesh's user avatar
  • 3,109
1 vote
1 answer
491 views

Add facet to Content editor search - field name with two words not working

I am trying to add a new facet to the content editor, everything is working fine with single word fields (Ex: Authors, Subjects, locations, etc), but same is not working with two word fields (EX: ...
Gopikrishna Gujjula's user avatar
1 vote
1 answer
811 views

How to enable full-text searches within the Content Editor?

Our client would like to do full-text searches within all of their Content (e.g. the values of the Rich Text Fields). Is it possible to enable this within the standard Content Editor search function? ...
user avatar
1 vote
2 answers
232 views

Media (Images) not loading and media dialog shows error

We have upgraded Sitecore 9.0.2 to Sitecore 9.3 and it is SXA based solution. And media search is not working after the upgrade. The Media dialog box shows an empty result and returns a response as ...
Sumit Helaiya's user avatar
1 vote
1 answer
74 views

Index rebuild batch sizing setting?

I need to change the size of the batches during the index rebuild. The most suitable setting I've found is ContentSearch.Update.BatchSize with the description: The size of document batch before ...
Yngvin's user avatar
  • 25
1 vote
1 answer
24 views

Amend ContentSearch settings to a single index?

I have a bunch of custom indexes and I need to finetune only 1 of them, not affecting the others. Let's say, I want to change ContentSearch.Update.BatchSize, is there a way to apply this setting for 1 ...
Yngvin's user avatar
  • 25
1 vote
1 answer
286 views

Solr - The Content field in SearchResultItem is always null

Using Sitecore 10.2 with Solr 8.4.0. I have Product pages which inherit from a template - Product Details. This template has the following fields: Title - Rich Text Description - Rich Text Category - ...
sukesh's user avatar
  • 3,109
1 vote
1 answer
130 views

Sitecore 10 Desktop search direct hit result

In Sitecore 9 or 10 - I'm not sure which as I skipped v9 - Sitecore have removed Sitecore.Pipelines.Search.IDResolver which is used in the search pipeline as defined in the OOTB Sitecore config in SC8:...
theyetiman's user avatar
1 vote
1 answer
411 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
1 vote
1 answer
730 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
1 vote
1 answer
607 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
  • 75
1 vote
1 answer
169 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 ...
Michael West's user avatar
  • 18.1k
1 vote
1 answer
73 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 ...
Mohamed Yaseen's user avatar
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, ...
Mohamed Yaseen's user avatar
1 vote
1 answer
281 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 ...
Gowthamaraja Eswaramoorthy'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
461 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 ...
Rajasekar's user avatar
  • 692
1 vote
1 answer
253 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 ...
Rajasekar's user avatar
  • 692
1 vote
1 answer
221 views

Search results count not updated when deleting items

I am using Sitecore 9.0.2. and SXA 1.8. I am facing a strange issue when I delete an item. The search results that returns this item is retrieved with the old count (including the deleted item) ...
BasantA's user avatar
  • 41
1 vote
1 answer
742 views

How to write a custom controller for Sitecore SXA Search Box component?

We are using Sitecore 9.0.2, SXA 1.8.1 and Azure search. The SXA component Search Box works perfectly fine. In our application, we need to show the search results from other application along with ...
user3267206's user avatar
1 vote
2 answers
695 views

Limit search result hits to a specific number with facets to match limited result set

I have a requirement to limit search results to an arbitrary number in a Site Search implementation. Is there a way to accomplish this in a query and get accurate facets relative to the arbitrary ...
Alex's user avatar
  • 545
1 vote
1 answer
161 views

Azure search random behavior running for Sitecore 9.0.2

I am having issue with the Azure Search where I am not getting results from the search index (it is random issue). I’ve verified the configurations of Azure search and computed index fields. Below is ...
Bhavesh Maniya's user avatar
1 vote
1 answer
303 views

_content field not populating correctly

We're on Sitecore 8.1 update 2 and I'm having issues with the content search API. Its my understanding the _content field in the index should contain an amalgamation of all the fields in the template. ...
stuartw87's user avatar
  • 113
1 vote
1 answer
412 views

Multilist with search not loading for non admin

Data on the left side of the multi-list is not loading if the user is a non-admin. I have multisite on a single node so on the data source I've put Sitecore query as StartSearchLocation=query:./...
Gowthamaraja Eswaramoorthy's user avatar
1 vote
1 answer
248 views

Content Search and Azure how to apply negative boost based on a checkbox value

I want to apply negative boosting to items, based on the value of an indexed checkbox field in order to move those items to the bottom of the search results. I am applying (positive) boosting to other ...
Matthew Dresser's user avatar
1 vote
1 answer
150 views

Rebuild Search indexes error: "System.ArgumentException"

My "Rebuild search indexes" aborts and produces this error: "System.ArgumentException: it doesn't make sense to have a field that is neither indexed nor stored". but which field, which Item ID? ...
Coeur Dusite's user avatar
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
1 vote
1 answer
247 views

SXA Search Results Grouping

I am using Sitecore 9.0 with SXA 1.6 and Solr search provider. Is there a way to display results grouped in SXA Search results components?
NAli's user avatar
  • 875
1 vote
1 answer
574 views

Error when adding computed index field: InvalidOperationException contextDatabase

I add a custom computed field to the fieldmap node in the Lucene Search config like so: <fieldNames hint="raw:AddFieldByFieldName"> <field fieldName="my_field" indexType="UNTOKENIZED" ...
Adam Seabridge's user avatar
1 vote
1 answer
569 views

Grouped Result in Solr

I have seen documentation mentioning Sitecore.ContentSearch.SolrNetExtension for Sitecore 9 indicating that its able to group results by a field (ie: _group field). What I am unable to find is a nice ...
vandsh's user avatar
  • 1,651
1 vote
2 answers
1k views

No facets showing in Sitecore Search when using SOLR

There is no facets showing when I change the search provider to SOLR. The sample item here is the Content item.
PGR's user avatar
  • 11
1 vote
1 answer
2k views

Search indexing not working as expected

I'm new to search and indexing. We are implementing this for a search feature on the website for the end user (not the internal search) and using Solr 4.10.3 with sc8.0 u5 Solr is setup with all the ...
sukesh's user avatar
  • 3,109
1 vote
1 answer
1k views

Issue with Sitecore Solr indexes Sitecore 8.1 Update 3

I am trying to convert the base Sitecore indexes from Lucene to Solr. I am using Sitecore 8.1 Update 3. I have 2 custom indexes that are still going to use Lucene for the time being so I still need ...
Derek Port's user avatar
1 vote
1 answer
394 views

How to avoid double quotes for is equal to when using segment builder

I'm creating a condition for the segment builder inheriting from TypedQueryableStringOperatorCondition. I'm overriding the method GetResultPredicate to apply my filter like this return base....
Vicent Galiana's user avatar
1 vote
1 answer
49 views

Content Editor search is not working for the template Ids

I have Sitecore 10.3 with SOLR search. In the "Sitecore.ContentSearch.Solr.DefaultIndexConfiguration.config" I have mentioned the <indexAllFields>false</indexAllFields> and next ...
Rameshkumar's user avatar
1 vote
0 answers
33 views

item version history to create items with Date field [closed]

We have requirement to show some text content (rich text field) based on revision date updated (date field). Latest updated content (sorted by date in descending) will be shown at the top . So content ...
Akshay D's user avatar
1 vote
1 answer
55 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
0 answers
37 views

sort by Title in solr not working as expected [closed]

the result not sorted alphabetical esc as expected
Sara Elgendy's user avatar
1 vote
0 answers
31 views

seeing this error after sitecore installtion ,local setup Could not find configuration node: databases/database[@id='web_am'], what could be the issue [duplicate]

I am facing issue on doing local setup for this sitecore, Could not find configuration node: databases/database[@id='web_am'] not sure why and where exactly this issue is occuring,and what could be ...
Siddhesh U Ghate's user avatar
1 vote
1 answer
139 views

SwitchOnRebuildSolrSearchIndex is providing wrong results for SOLR master-slave setup

Our custom indexes have primary (search_index) and Secondary (search_index_rebuild) cores which are pointing differently in master and slave servers as we are using SwitchOnRebuildSolrSearchIndex. Due ...
Ruchi Gupta's user avatar
1 vote
0 answers
53 views

How to skip the search Special Character in Sitecore SXA Search

I have worked on the Sitecore SXA search and Version is 10.2. Created respective Solr core and configuration for search then did the Indexing. After that browse the web page and type %,$ (all special ...
Rameshkumar's user avatar
1 vote
0 answers
86 views

Solr default search indexes exception: IDocumentBuilderOptions of wrong type for this crawler

We are in the process of upgrading from Sitecore 10.0.1 to Sitecore 10.3. We used Azure search which is no longer supported. Following the installation process, and setting up the default indexes ...
Edmar Langendoen's user avatar
1 vote
0 answers
94 views

Facets are not loading for custom Solr index

We are working on a new site and have created a new index for it. This index is similar to sitecore_sxa_web_index except for the root path. Instead of /sitecore, we have /sitecore/content/<Tenant ...
Imad's user avatar
  • 235
1 vote
0 answers
102 views

Why does my Sitecore site start rebuilding indexes after a restart even though I'm using the manual index strategy?

I'm using Sitecore 9.2 XM and (don't shoot me for this) Lucene search provider... I want to do some investigation and timing, so patched all my search indexes to use the manual indexing strategy, but ...
Matthew Dresser's user avatar
1 vote
0 answers
23 views

Azure Search and Linq for Exact Phrase [duplicate]

We are using Azure Search engine (I know...) and need to so a search for an exact phrase. Using the PredicateBuilder, if I have a statement like: keyword = "Mary Smith"; predicate = ...
Gary Williams's user avatar
1 vote
1 answer
468 views

Maintain Facet count after faceting

I'm using Sitecore 9.3 and Solr 8.1.1. I'm developing a search filter using Sitecore Content Search API, with the behavior of keeping the facet count the same even after selecting options. For example,...
Mohamed Yaseen's user avatar
1 vote
2 answers
243 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
5 6
7
8 9
11