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
0 votes
1 answer
37 views

Sitecore Content Editor Search is behaving unusual for items with SPACE

We have the following issue with SC9.3 Solr 8.1.1 A Media item with sample name "Text_20230101 Hello world". We have the below behavior in the CMS content editor search. (free text search on ...
Deepak Jena's user avatar
1 vote
1 answer
69 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
1 answer
53 views

Multiple Master_Index entries are coming on job queue on full reindexing the Sitecore_Master_Index

At the time of sitecore_master_index rebuild (full reindexing or on update) we can see multiple sitecore_master_index entries in the index job queue. Can anyone explain the reason for this? url : ...
Ruchi Gupta's user avatar
2 votes
1 answer
122 views

In solr Master-Slave configuration custom indexes are getting out of sync sometimes in one of the slave servers

In our production environment, we have Master-Slave SOLR server configuration. We have 2 SOLR slave servers and configured SOLR load balancing URLs in prod CM and CD servers. Right now we are facing ...
Ruchi Gupta's user avatar
0 votes
1 answer
48 views

Results not filtering by language

I have an item which has 2 language versions - English & Chinese. This Search query is returning both versions when the expected is only English. Not passing the languageCode so by default it is ...
sukesh's user avatar
  • 2,797
0 votes
3 answers
109 views

Solr - How to fetch data by page

There are no results when I apply pagination to the query. But when I comment that code, I get results. Search log without pagination: INFO Solr Query - ?q=: AND val:__boost&start=0&rows=...
sukesh's user avatar
  • 2,797
0 votes
1 answer
97 views

Solr query not returning search results

I can see all the records in the Solr portal when I run the query. Here is the data of one product. https://localhost:8983/solr/stratum_products_master_index/select?q=_templatename%3A%22product%...
sukesh's user avatar
  • 2,797
0 votes
3 answers
119 views

Solr - Recommended way to search by filters

I'm trying to build a generic Search method GetSearchResults that would fetch results from Solr. Sample use Case: Get a list of all products where the searchTerm can be in the Title OR Description ...
sukesh's user avatar
  • 2,797
2 votes
2 answers
50 views

Is it possible to generate Sitecore Search Scope across the entire tenant?

I have a requirement to display pages based on two different templates on two separate sites. For example: Let's say I have one site called Site A and another site called Site B. In Site A, I have a ...
Anjali Nirmani's user avatar
2 votes
1 answer
85 views

Sitecore Solr - Content Editor search returns no results but Experience editor and context search works fine

We are having the following issue. Please let me know if you have come across a similar issue or know of a potential solution. In Sitecore Content Editor, all search queries works fine if logged in as ...
Deepak Jena's user avatar
1 vote
1 answer
88 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
  • 2,797
2 votes
3 answers
232 views

Solr stripping out the HTML from Rich Text Field while indexing

I want to prevent stripping out the HTML from my one of the Rich Text Field. I have the following field reader by field name in my index configuration file in place under the mapFieldByTypeName ...
Jey's user avatar
  • 293
1 vote
0 answers
41 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
1 answer
70 views

Sitecore Search - Validation Failed

I have a problem with Sitecore 10.2. I'm in the process of upgrading from 9.1 to 10.2. I created a new environment and updated the databases according to the instructions, but the sitecore.search logs ...
Jan Nowak's user avatar
  • 311
0 votes
0 answers
59 views

Search.log filled with queries for _name=[fieldname] and _templatename="Template field"

I am trying to locate where a bunch of Solr queries are coming from. The log file has numerous requests similar to: 16064 15:59:57 INFO Solr Query - ?q=_name:(_lastestversion)&rows=0&fq=...
AmoebaMan17's user avatar
0 votes
0 answers
44 views

Sitecore Select Media return empty in Experience Editor - Multisite SXA

We have recently upgraded the Site from v9.2 to 10.2. We have maintained multisite with SXA. In the old Site, we used Azure Search and now converted it into Solr search. After integrating all the ...
Rameshkumar's user avatar
1 vote
0 answers
42 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
2 votes
1 answer
78 views

Newly created Facet is not showing in Content Search view

I created a facet as per the documentation: https://doc.sitecore.com/xp/en/developers/92/sitecore-experience-manager/facets.html In the "Field Name" field I tried the field name as in the ...
iusmar's user avatar
  • 229
1 vote
0 answers
70 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
1 answer
49 views

What is the best practice approach to populating a navigation component

I have been spending a bit of time looking at the Sitecore Debugger. Using this you can see the 'hotspots', the components on the page that take the longest time to load and make the most calls to the ...
Dean OBrien's user avatar
1 vote
0 answers
59 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
4 votes
1 answer
139 views

ERROR Solr Error : [undefined field content_type] - upgarding from Sitecore 8.2 to 10.1 and from Lucene to Solr

I'm working on a Sitecore upgrade from 8.2 to 10.1, which includes replacing Lucene with Solr. I have a content listing page that allows filtering by content type as well as many other fields - these ...
Erica Stockwell-Alpert's user avatar
1 vote
0 answers
22 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
3 votes
2 answers
256 views

Sitecore 10.2.1 (pre release) error loading hook

We are upgrading from 9.1 to 10.2.1 (pre release) and we're seeing this error when trying to load the CM instance: 11608 17:56:05 WARN Could not find constructor in ReflectionUtil.CreateObject: ...
Calum's user avatar
  • 392
2 votes
2 answers
211 views

Refreshing single document in ContentSearch/Solr index using IndexCustodian?

I have a working custom index configured, it includes some custom fields and has specifically included fields and templates to keep it light. It uses the default SitecoreItemCrawler. I'm on 10.1 ...
geedubb's user avatar
  • 153
0 votes
2 answers
70 views

Can You Perform a Bucket Search on Unpublished Content

Our customer is creating a large body of new bucketed content (using a new template) below a parent item (which is also new). In order to publish all this at once, they're leaving the parent ...
Ron Ritchie's user avatar
4 votes
2 answers
234 views

SOLR Search result order is different due to the query _val_:__boost function

After upgrading the project to Sitecore10.2 SOLR search result is different in order due to the query _val_:__boost function. I have investigated the issue and found out that in Sitecore 9.0.2 our ...
Himmat Singh Dulawat's user avatar
2 votes
1 answer
69 views

Inconsistent behavior when use Solr boosting

I'm using Sitecore 9.3 and Solr 8.1.1, I have this simple query q=itemName_t:(*test*)^80&fl=itemName_t,_templateID,score&fq=_indexname:(custom_index)&wt=xml And these are the results: ...
Mohamed Yaseen's user avatar
0 votes
1 answer
266 views

Nested Solr Structure

Is it possible to create a nested data structure in Solr using the content search index configurations? I'm curious if I can create a document like the following, then query against and/or facet the ...
Jay's user avatar
  • 3
1 vote
1 answer
291 views

Graph QL Search Result Computed Field

I have started to look at using Graph QL for search using the endpoint that comes out the box with Sitecore 10.1. I've read that the results are based on an item but had lazy loading eg. You have ...
Luke Wilkinson's user avatar
1 vote
1 answer
278 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
0 votes
0 answers
57 views

Read SXA Search Scope in Code

everyone , I've to read the SXA search scope in my code. I am using the search result component on my page and added some custom filters in the search scope. So I need the applied search filter on my ...
arul pushpam's user avatar
2 votes
1 answer
214 views

How to create an anchor tag of General Link field

We are getting results through Content Search API and getting the General Link field value into it. We would like to add an anchor link based on a general link field value. Do we have the default ...
Ashu's user avatar
  • 402
0 votes
1 answer
115 views

How to get content search result in Sitecore? [closed]

I have a droplist field value and based on this value would like to get result from Solr search provide. Could someone assist me on this ?
Nisha's user avatar
  • 371
0 votes
2 answers
144 views

Sxa custom search token query Wrong date format

I have added a new sxa token processor to filter the passed date events, This is my Code protected virtual SearchStringModel BuildModel(string fieldName) { Log.Info($"SXA_Token ...
arul pushpam's user avatar
0 votes
1 answer
110 views

How to implementing keyword search with xconnect contact facet search?

I am using Sitecore 10 and trying to implement keyword search with xConnect contact. I want to search for contacts that have email or phone number that contains the inputted keyword. Below is my ...
truongdsbui's user avatar
1 vote
1 answer
198 views

How to search only curly braces i.e. { } in Solr search using Solr URL

As shown in the picture, I have some tokens in a computed field and want to search all those fields which have { }, but not able to do so, although I have put escape sequence i.e. I have tried to ...
Rinku Jain's user avatar
1 vote
1 answer
88 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
0 votes
0 answers
103 views

Apply sorting on specific template

I'm using Sitecore 9.3, I have search API that fetches two types of templates, Product and Content Page, the search results are always a combination of these two types. I apply boosting on Product ...
Mohamed Yaseen's user avatar
0 votes
1 answer
173 views

Search and replace HTML code on multiple pages

I have an old image map that appears on 500+ pages. I would like to delete it and replace it with inline SVG. I know you can search and replace text, but is there a way to search and replace code on ...
Mt_F's user avatar
  • 1
0 votes
2 answers
105 views

GetDescendantsByTemplateWithFallback in Sitecore 10.1

We are upgrading from Sitecore 8.2 to Sitecore 10.1. The method GetDescendantsByTemplateWithFallback exist in Sitecore.ConentSearch.dll Version 2 but this method is missing in Sitecore.ConentSearch....
Owais Ahmed's user avatar
0 votes
0 answers
77 views

How to disable xDB related search indexes in SItecore 9.1?

I am trying to reduce amount of indexes (I want to remove all xdb, fxm, marketing indexes), but sitecore documentation is not helpful with it. I created patch to disable Xdb and Tracking and to delete ...
Mickey P's user avatar
  • 175
2 votes
1 answer
563 views

Sorting by date with Solr is returning an incorrect sort order

If I run a normal search query via the content search API, sorted by an indexed date field, it is not sorting the results correctly. I have checked that the sort field on the Solr managed schema is in ...
Mark Gibbons's user avatar
  • 5,302
0 votes
0 answers
84 views

Modifying SXA checklist Filter facet

I have added the checklist filter from the SXA search component. I have to modify the dropdown by entering the box and autocompleting. I would like to modify like the below one without typing a word ...
arul pushpam's user avatar
0 votes
1 answer
117 views

Solr QueryElevationComponent being ignored

I'm trying to set up "best bets" in a Sitecore 9.3 environment. I set up the Solr Query Elevation Component following the instructions at this URL: https://solr.apache.org/guide/6_6/the-...
Tim's user avatar
  • 21
0 votes
2 answers
415 views

GetFacets / GetResults returns an empty facet list

I was tasked to create a facet component for our solution on top of an already existing search functionality - which is an API controller. The code snippet I added is the use of .FacetOn(x => x[key]...
Lala's user avatar
  • 367
7 votes
2 answers
1k 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
  • 103
0 votes
1 answer
178 views

Search HTML code in Content Editor

I am sorry if this is a stupid question, I am just starting to explore Sitecore. When I use the search function in the Content Editor, it will return the items that contain my search query. But it ...
Peter's user avatar
  • 103
0 votes
2 answers
89 views

Semantic Tag Based Sxa Search not showing result on solr search service

I am using Sitecore 10.1 with Sxa on solr 8.4.1. The sxa scopes based on templates having any semantic tag is showing result in build query, but not on page preview nor published page. Example query : ...
Tabbuu's user avatar
  • 65
1 vote
3 answers
396 views

How to write the query for grouping of articlecategories to fetch the count of article in Solr

I would like to query in Solr, to pass the list of categoryID('cat001','cat002','cat003','cat004'), based on the categoryID, we need to get the count of Article of passed categoryID in the Solr Query, ...
Ratnesh Pandey's user avatar

1
2 3 4 5
11