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
406 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, ...
0 votes
1 answer
57 views

Map droplist field in SearchResultItem not working

I have a template EventPage defined several attributes, datetime, single-line text, droplist etc. I defined a EventPageSearchItem inherit from SearchResultItem as follows: public class ...
0 votes
3 answers
2k views

Make Computed index field searchable

I'm using Sitecore 9 update 1 and SXA 1.7, I created a computed index field but it's not searchable, when I search by its value the item that has the index field don't return, I'm using SXA search box ...
1 vote
1 answer
445 views

How to search any component's field value by using SXA search component?

I am newbie in SXA, working on Sitecore 9.2 SXA 1.9 . Here in my case i am using Carousal in one of page where trying to search by Slide Text field value but no record is coming. I have added ...
3 votes
1 answer
307 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 ...
1 vote
1 answer
57 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 ...
1 vote
1 answer
142 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 ...
1 vote
1 answer
53 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 ...
2 votes
1 answer
422 views

SXA Search Boosting Throws Error

I have configured the search scope for SXA (Sitecore 9.3) and it works as expected. However, when I try to add boost configuration to the search scope it throws the below error. Invalid Method Call ...
2 votes
3 answers
1k views

Custom index field not showing in Azure search

I am trying to use KamSars approach to indexing subcontent (pagecomponents) in my Sitecore 9.2.0 solution. It works fine in my Solr index locally, but when I try to add the two new computed index ...
1 vote
2 answers
313 views

Accordion Items are not shown up after indexing even in scope query when we provide template name

I am trying to make my accordion items (data source is in Data node) searchable. I tried adding _searchable to the accordion-item, but I guess it is not getting indexed. As I try to add it using ...
2 votes
2 answers
301 views

Search query custom path

I'm trying to build a search query to find an item that is a child of the current item. Something like this: custom:path|./_local/* But this returns 0 results (should be 3 results). How do I do ...
0 votes
1 answer
116 views

Sitecore Graph QL Search getting unknown argument "FieldsEqual"

I am trying to execute search on Graph QL. When I try "FieldsEqual" query, I am getting unknown argument in "Query.Search". Any help to overcome this issue will be highly ...
2 votes
1 answer
86 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
171 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 ...
0 votes
2 answers
157 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
1 answer
102 views

Setting update.autoCreateFields=false via API when creating Solr Cores for Sitecore 10.3

I'm trying to Automate some of the Setup of Solr Core's for Sitecore 10.3 and everything works fine - apart from one thing which is that there is a requirement to set update.autoCreateFields=false in ...
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 ...
2 votes
0 answers
41 views

Buckets/Services/Search.ashx 500 error

We have a Sitecore 10.3 version and we see the 500 error with the following URL in the console. Multilist with search is not working along with the Sitecore tab search. /sitecore/shell/Applications/...
3 votes
2 answers
955 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. ...
0 votes
1 answer
442 views

Error while resolving field boosting on CD server

I am getting the below error on my CD servers. I have never run into this error before and not sure what it is trying to say. I have populated index schema and re-indexes. CM is working fine and ...
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 ...
1 vote
2 answers
458 views

Working with chinese language with the SXA Search Component

We have an issue, where we have content in multiple languages, and we are doing a basic keyword site search using the SXA Search Component. As far as I can tell (from the search.log), the SXA Search ...
2 votes
1 answer
3k views

Non-static method requires a target

Recently migrated from Lucene to Solr search(7.2.1) in Sitecore. When I try to get the search results from Code, I'm getting the exception Non-static method requires a target However, from Solr ...
0 votes
2 answers
88 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 ...
2 votes
1 answer
85 views

How to set the JVM Memory for Solr running on an Azure App Service

If you are following one of these blog posts on setting up Solr in an Azure App Service (instead of an VM) such as: https://www.getfishtank.com/blog/installing-solr-app-service-in-sitecore-azure-paas, ...
7 votes
3 answers
2k 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 ...
0 votes
0 answers
48 views

Order search results by frequency of the search item (Wildcard and substring)

Extending my previous question We have a requirement to order search results based on the number of occurrence of the search term (wildcard and substring) in a list of fields(not all the fields). Ex : ...
7 votes
2 answers
470 views

"Search Tab" for "File" data type gives "The media item could not be found"

I have a structure in which we have a field defined as "File" data type. The requirement is to point this to a specific location within "Media Library". We have done this by specifying guid of the ...
1 vote
1 answer
91 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 : ...
0 votes
0 answers
40 views

All the facets terms not loading in multi list filter from solr on initial load

We are using Sitecore 10.2 with SXA on Azure Kubernetes, and Solr as a search service. On a multi-list facet filter (facet-multi-selection-list), trying to fetch facet terms, where facets are added ...
0 votes
0 answers
39 views

How to search related article page in sitecore [duplicate]

I have an ArticlePage template with a TopicTags field, which is a treelist pointing to a list of tags. Users can select one or two tags. I have a requirement to search for two related articles that ...
0 votes
0 answers
25 views

Azure Search Provider does not index any template fields

The azure search based Sitecore instance deployed as App service does not index any fields defined in the template. I dumped the key:value from searchresult object's Fields and we got the following ...
0 votes
0 answers
32 views

How to construct a query to search any field in given page templates?

I have few page templates defined such as basic page, article page, event page, directory page and each of them has different fields. how do I construct a query in search api to query any item that ...
0 votes
3 answers
619 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]...
0 votes
0 answers
213 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 a query in Build Search Query, it always shows 0 results. I also inherited templates from _Searchable template. Indexes were ...
1 vote
2 answers
244 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 ...
1 vote
0 answers
39 views

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

the result not sorted alphabetical esc as expected
2 votes
2 answers
695 views

Sort by title asc on Solr not working as expected

When trying sort search results in Solr using title (alphabetical) asc or desc does not work as expected and not sorted.
0 votes
1 answer
560 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 ...
2 votes
0 answers
224 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 ...
1 vote
2 answers
294 views

Get Only one language version per item by using Find-Item

I am using a PowerShell script given below $indexName = "sitecore_web_index" $criteria = @( @{Filter = "Contains"; Field = "industry_sm"; Value = ...
2 votes
1 answer
366 views

Use the TermFreq() function programatically in Sitecore

I was building query on the basis of the occurence/relevancy of the terms present in a field and got one issue , suppose i searched for a keyword "text" in the content field , and i want to sort the ...
4 votes
0 answers
382 views

How to search all the articles that have the same (or at least one) tag with the current page?

I found TaggedTheSameAsCurrentPage|SxaTags and TaggedWithAtLeastOneTagFromCurrentPage|SxaTags that is similar to what I need. However it doesn't return any results. I couldn't find much ...
5 votes
0 answers
260 views

Check if boost rule has been applied to an item

I am implementing functionality to push certain items in my content tree down in search results depending on a "discontinued" checkbox field. I have created a rule item under /sitecore/system/Settings/...
0 votes
0 answers
67 views

Solr search result not coming when full keyword is searched

I have search results coming based on meta fields Title and Description. When I search for the partial keyword "fir". results are coming but when I search for the full keyword "first&...
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 ...
0 votes
0 answers
45 views

The fastest way to flush items into SOLR?

The general, the task is to denormalize 3 indexes into 1. Please, don't ask why I use SOLR as a data source here. Imagine I have 3 normalized indexes: index1 with fields: id, name, type, address ...
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 ...
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 ...

1
2 3 4 5
11