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
38 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 : ...
2 votes
1 answer
71 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 ...
0 votes
1 answer
36 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 ...
  • 2,713
0 votes
3 answers
59 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=...
  • 2,713
0 votes
1 answer
49 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%...
  • 2,713
0 votes
3 answers
68 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 ...
  • 2,713
2 votes
2 answers
39 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 ...
2 votes
1 answer
62 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 ...
1 vote
1 answer
61 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 - ...
  • 2,713
2 votes
3 answers
60 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 ...
  • 199
1 vote
0 answers
33 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 ...
1 vote
1 answer
60 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 ...
  • 311
0 votes
0 answers
34 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=...
0 votes
0 answers
40 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 ...
1 vote
0 answers
32 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 ...
2 votes
1 answer
52 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 ...
  • 229
1 vote
0 answers
59 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 ...
  • 235
1 vote
1 answer
41 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 ...
1 vote
0 answers
55 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 ...
4 votes
1 answer
107 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 ...
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 = ...
3 votes
2 answers
187 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: ...
  • 392
1 vote
2 answers
152 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 ...
  • 133
0 votes
2 answers
68 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 ...
4 votes
2 answers
186 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 ...
2 votes
1 answer
58 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: ...
0 votes
1 answer
223 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 ...
  • 3
1 vote
1 answer
229 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 ...
1 vote
1 answer
225 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,...
0 votes
0 answers
56 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 ...
0 votes
0 answers
199 views

SOLR on Azure App Service - known issue reference

We are experiencing index being locked sometimes. It doesn't happen often and restarting SOLR service is the only workaround. We found the following thread that people mentioned it is a known issue. ...
  • 1
2 votes
1 answer
194 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 ...
  • 402
0 votes
1 answer
93 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 ?
  • 339
0 votes
2 answers
126 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 ...
0 votes
1 answer
100 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 ...
1 vote
1 answer
168 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 ...
1 vote
1 answer
73 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:...
0 votes
0 answers
88 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 ...
0 votes
1 answer
150 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 ...
  • 1
0 votes
2 answers
93 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....
0 votes
0 answers
68 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 ...
  • 173
2 votes
1 answer
478 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 ...
  • 5,245
0 votes
0 answers
76 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 ...
0 votes
1 answer
105 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-...
  • 21
0 votes
2 answers
341 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]...
  • 357
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 ...
  • 103
0 votes
1 answer
159 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 ...
  • 103
0 votes
2 answers
83 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 : ...
  • 65
0 votes
3 answers
350 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, ...
0 votes
1 answer
198 views

Load Site based item only in 'Multilist With Search'

I am working on Sitecore 9.1 with SXA multisite application. I have a folder in every site e.g Site-1/data/Tags/ I created page items with a field Multilist With Search type Now I want to load data ...

1
2 3 4 5
11