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.

93 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
182 views

Virtual field not working with Azure

Currently, I'm using facet to filter the search result. The result works perfectly fine with SOLR but when I switch to Azure it doesn't work anymore. The result shows all although I added filter ...
5
votes
0answers
435 views

Atomic update of a SOLR document. Updating fields on document instead of full reindex of document

SOLR has a feature for doing partial updates of a document called Atomic Updates. The SOLR documentation has this example: { "id":"mydoc", "price":{"set":99}, "popularity":{"inc":20}, "...
5
votes
0answers
245 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/...
5
votes
0answers
220 views

Dynamic Date Comparison in Search filter

Using Sitecore 9.01 and SXA 1.6 , we are trying to create search scope that filter News item based on their dates , so each News item has start and End date and we need to display only not expired ...
4
votes
0answers
209 views

Sitecore Content Search API returns expected results with Lucene as search provider but not with Solr

I'm currently writing a service that needs to integrate with Eventbrite to store external event information as items in Sitecore. We run a Sitecron job every 4 hours to pull in and update the ...
4
votes
0answers
275 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 ...
3
votes
0answers
107 views

Not able to fetch search result in Content search API with Solr and Azure

I am using content search API in Sitecore 9.1.1. However, it is not fetching result if i am using search with any of the template field. The below code fetching result based on template id but when we ...
3
votes
0answers
182 views

SOLR CLOUD error on looping through search result on 9.0 Update-1

I'm trying to setup SOLR Cloud to work with my Sitecore 9.0 (Update-1) instance. I'm using 3 different VMs with [1-Zookeeper + 1-SOLR 6.6.2] configured on all machines. I have added the following ...
2
votes
0answers
175 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 ...
2
votes
0answers
134 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 ...
2
votes
2answers
303 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. ...
2
votes
0answers
59 views

SXA search filters don't intersect itself

I'm using Sitecore 9.1 and SXA 1.8, I have checklist filter with data as seen: Individual has items : News3, News4, News7 Vacation has items : News3, News5, News6 When I choose these two options, ...
2
votes
1answer
305 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
0answers
79 views

How to implement nested condition in Sitecore search Query Token?

Refereeing this nice post https://ggullentops.blogspot.com/2019/01/extending-sxa-search-query-tokens.html Above approach works well with simple conditions which generate the below SOLR query e.g. ...
2
votes
1answer
210 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 ...
2
votes
0answers
125 views

Solr Document Boosting

I'm attempting to item boosting working with Solr and I can't for the life of me get it to work. I'm certain that I've had it working in the past for other projects. The problem looks to be on the ...
2
votes
0answers
229 views

SXA pdf files search issue

In our Sitecore SXA solution, searching for pdf files is failing. In our case, the files are stored under a separate media folder which is under the actual site node. We have installed the pdf IFilter ...
2
votes
0answers
68 views

Custom content search (crawler) sent old indexed ids

I have a completely custom search crawler that pushes data to Algolia. If I run the full reindex it works great. When trying to use a onPublishEndAsync strategy I see the first item come in I publish ...
1
vote
0answers
43 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 ...
1
vote
0answers
82 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 ...
1
vote
0answers
110 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
0answers
76 views

Exact search in Azure search in Sitecore SXA

Using azure search in Sitecore SXA 1.7 and it is not fetching exact result likewise if we are using "Test data" in search box then it is showing result based which match "Test data ...
1
vote
0answers
437 views

How to get the exact match or sub string of the passed query in solr

I'd like to query a string to Solr and let it answer with all records which are a subset of that string. The string is separated by a comma. I wanna make Solr to give me all records where a specific ...
1
vote
0answers
37 views

SXA Filter API ignore the custom index

I'm using Sitecore 9.1 and SXA 1.8, I've created custom index for my site and it's working fine, the SXA OOB Search results API is using the custom index which is right But the SXA OOB Search filters ...
1
vote
3answers
343 views

The method 'Concat' is not supported. Declaring type: System.Linq.Queryable

I have two IQueryables that i need to merge. This is my code: such that all results having region name "UK" will appear on top while all results having region other than UK will appear after search ...
1
vote
0answers
62 views

Coveo Index Item Url Issue Using Sitecore 8.2 and Coveo 5.0

I am facing an issue with the Coveo index Item URL. After Coveo indexed on dev environment, item URL formation is in a right format like /en/za/news/news1 while on uat environment after Coveo indexed ...
1
vote
0answers
78 views

Sitecore Spell checker neglect search scope

I'm using Sitecore 9.1 and SXA 1.8, I'm using Solr spell checker feature to fetch suggestions for a SXA search box that I use, the source of the suggestions is the field you specify in the ...
1
vote
0answers
40 views

Search results signature is set to null in arabic language

I'm using sitecore 9.1.1 and SXA 1.8.1. My site have two languages: english and arabic. I've recently run into a problem which is the following: All the search results components stopped returning ...
1
vote
0answers
179 views

How to exclude the results based on some templates in Solr/Suggest search?

I have a scenario that, I want to exclude some templates(Items that are based on these templates are need to be excluded) from solr Suggestion/autocomplete results. I did set a context field as ...
1
vote
0answers
57 views

Return Partial view inside search results rendering variant

I'm using Sitecore 9.1.1 with SXA 1.8.1. I have a search results component, I need to render a partial view inside a section in its rendering variant. I tried to add a Variant component for a custom ...
1
vote
1answer
184 views

Can a TOKENIZED index field be remapped to an UNTOKENIZED field of a different name without using a computed? (LUCENE)

Having some search issues with using the "Name" field on items ("_name") I'd like to map it to another field that I can search on without having to create a custom computed field to do the mapping. ...
1
vote
2answers
319 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 ...
1
vote
0answers
144 views

How to build scope query?

I have a scope query that retrieves all items that contain includedinsearch field with value searchable but I also need it to exclude an item when this item has EndDate or EventEnd field with values ...
1
vote
0answers
98 views

Sitecore SXA search doesnt work

I have recently installed a fresh Sitecore 8.2 update 5 including Power Shell 4.7.2 SXA 1.5 rev 171010 Sitecore SXA Showcase v1.2 Everything seems working fine except for the search function. When ...
1
vote
0answers
50 views

SXA search result returns Error 400

I am using Sitecore 9.0.2 and SXA 1.7.1. Search results return Error 400 with response "Exception has been thrown by the target of an invocation." while facets return results as expected. any idea ...
1
vote
0answers
58 views

Not able to Perform multi-language search Sitecore with searchstring

Using Solr as Default search provider. Content Search is working when website language is -en example.com/en/sxa/search/results/?l=en&q=query From localhost:8983(solr) Able to query the data ...
1
vote
0answers
99 views

Adding hashtag to the internal link that leads to blog search page with tag filter search Sitecore SXA 1.9

The blog index page has all articles are listed and the filter based on tag that works with solr search. The search results based on sxatags filter will get added on the blog index page when apply ...
1
vote
0answers
28 views

Specific search terms return 500

We are on Sitecore 9.0.1 and Solr version 6.6.2 and have previously had issues with populating our schemas from the Sitecore control panel. After overriding the pipeline like in this blog post (https:/...
1
vote
0answers
192 views

Blog posts with Tag Cloud filter does not work on the search results - Sitecore 9.2 and SXA 1.9

I have created the blog component based on the below link https://alan-null.github.io/2017/12/sxa-blog Somehow, the filter does not work using the SXA tags. What I have done: Created Blog Module ...
1
vote
1answer
757 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
2answers
152 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 ...
1
vote
1answer
249 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 ...
1
vote
1answer
473 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 ...
1
vote
0answers
80 views

How can the Sitecore search API be extended to support Azure search traffic analytics?

I'm experimenting with adding support for conditionally returning SearchId for Azure search traffic analytics purposes (https://docs.microsoft.com/en-us/azure/search/search-traffic-analytics) as part ...
1
vote
2answers
365 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 ...
1
vote
0answers
306 views

Custom query in SXA search scope

Using Sitecore, I have defined some tags, related to food or pet type and assigned some of these tags to pages How can I limit search scope to find all pages which have any food tag assigned ?
1
vote
0answers
120 views

How does sitecore search (Lucene) handle duplicate field names stored in index?

Luke is showing two fields with the same name for a document. When executing a search does sitecore search both fields or does it only search the first one. And if that's the case is there a way to ...
1
vote
0answers
66 views

Items inside composite items are not listed on search

In SXA Search we are not getting the results for items present inside composite components like Tab/Carousel components. Does anyone have any suggestion that might help?
1
vote
0answers
56 views

Virtual Folder defined for a language site not working with Data API URL

We are on multi-lingual websites having en-CA and fr-CA languages as well. We defined virtual folder for fr-CA to share the same domain name with en-CA. Hence the en-CA works on www.mywebsite.ca and ...
1
vote
0answers
53 views

Prioritize search word in title over finding the word in any other field?

I got some help in a previous question about prioritizing the title field in searches, however when I run the search now, I continue to to get some results where the word is only in the content field ...