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
1answer
15 views

Where to get Azure search query logs to check a query?

We are using Azure search to get the Sitecore items based on some filter conditions passed as predicate. This condition is not working with Azure Search in our dev environment. We have to check the ...
1
vote
2answers
178 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
2answers
52 views

Sitecore SXA search result count in scriban

Is there a way to read the search results count in a Scriban template in a rendering variant of SearchResult in SXA? I have a requirement that if the search results count is less than 6 the result ...
1
vote
0answers
15 views

Ensure Azure Content Search Provider uses a filter for a query

We have a number of searches on our site that should be possible through a pure filtered search - we're searching across a few fields, some of which are mutli-selects, others are booleans and one's a ...
0
votes
0answers
12 views

Sxa Check list filter for single line text filtering as like operator not equal operator

I have a search results component. I want to apply the sxa check list filter. While applying over the single line text the unique value is coming properly along side check box but filter is not ...
0
votes
2answers
202 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, ...
1
vote
1answer
36 views

SXA Seach 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 ...
3
votes
1answer
63 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
1answer
23 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 ...
0
votes
1answer
68 views

Create LINQ to SOLR expression to get intersection or empty

Project computes semantic field with list of tags (stringArray). Requirement is to search for items that tag list intersect with given set of tags. But also if the item tags list is empty we would ...
1
vote
1answer
169 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
318 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 ...
0
votes
1answer
248 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
1answer
49 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 ...
1
vote
3answers
142 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
25 views

SXA Search api doesn't work with Arabic facet value

I'm using Sitecore 9.3 and SXA 9.3, I use SXA OOB Search results components, when filtering with Arabic keyword in the facets, it doesn't bring data, although I checked the generated SOLR query, it ...
0
votes
1answer
29 views

Create a predicate matching 2 lists

I have a multilist field (Product Category). I am getting a list of Product Category from the session. How can i write a predicate to filter all those items which has one common category without ...
1
vote
2answers
217 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
40 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 ...
2
votes
1answer
192 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 ...
1
vote
1answer
50 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 ...
0
votes
0answers
22 views

Sitecore SXA search for redirect item

I am using Sitecore 9.3 with SXA and using the SXA search box and search results. I have redirect items under my home node, but when I try to search the redirect item name in the search box, it doesn'...
0
votes
1answer
29 views

Enable multi search without filter button in sxa check list filter

I am using sxa check list filter. For multiple category filter the filter button is coming automatically can anyone pls help to enable the multiple filter without button.. It seems that I need to ...
0
votes
1answer
26 views

Filter search based on the page field of date type

In SXA Sitecore 93 I have a requirement to show items in search result, where date field on page is only greater than current date. I am trying to create a custom sxa token just like we have: ...
2
votes
2answers
1k views

Results are not coming in the order using sortorder from lucene index

I have some items present in an item folder and want them to retrieve from Lucence index. There is a requirement that we have to order items in the Sitecore based on the order set on the Sitecore CMS, ...
2
votes
1answer
104 views

Search on custom solr index

I am trying to search on a solr core which contains static data without any Sitecore details. <doc> <str name="_property_text">1</str> <str name="_itemnumber_string">1250000&...
0
votes
0answers
23 views

Rebuild index feature from CM not updating indexes on CD server

Lucence indexes are not in sync on CM and CD server which seems expected as per this post but for me even manual trigger is not working. I tried Index rebuild in Developer tab from top ribbon from ...
0
votes
0answers
33 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 query in Build Search Query, it always shows 0 results. I also inherited templates from _Searchable template. Indexes also added ...
1
vote
1answer
114 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. ...
0
votes
1answer
47 views

GroupBy clause for both search providers (Solr, Azure)

Would like to use groupby clause in Sitecore 9.1.1 for both search provide (Azure, Solr) in content search API. However, Sitecore does not support this clause. Kindly let us know how we can group ...
0
votes
1answer
552 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 ...
2
votes
1answer
42 views

Cannot search sxatags to find related items - 'undefined field sxatags'

Sitecore 9.3 with SXA. I'm trying to utilise sxa tags from the inherited _Taggable template to programmatically find related items with similar tags to the context item. That SXA template is /sitecore/...
0
votes
2answers
1k 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 ...
0
votes
1answer
63 views

SXA search - 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 ...
1
vote
2answers
110 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
0answers
28 views

Content search predicate with multiple conditions

Sitecore 9.3 I am trying to use 'predicates' to get a subset of data. When I have the code snippet as: using (var contextA = selectedIndex.CreateSearchContext()) { var predicate = PredicateBuilder....
0
votes
2answers
60 views

Sitecore Solr multiple filter tagging / excluding

I am using Solr facets and I want to filter tagging and exclude it. My query is : https://localhost:8989/solr/rya_custom_web_index/select?q=*%3A*&fq={!tag=courseactivities_s:Dinghy}...
1
vote
1answer
25 views

Search API with multiple conditions

Sitecore 9.3 What I have till now: I am able to filter items based on a template using the search context. var unversionedImageTemplateId = ID.Parse(Constants.UnversionedImageTemplateId); var ...
0
votes
1answer
35 views

Invalid Method Call Argument in Content Search

Sitecore version: 9.3 I am trying to fetch the media components with specific template and having a particular check-box selected using Sitecore query in my code. I tried the following code snippet: ...
1
vote
1answer
33 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 ...
3
votes
1answer
267 views

Handling special characters in SOLR search for sitecore 9.1

For a Dutch company, we implemented Sitecore SOLR search (Sitecore 9.1 and SOLR 7.2.1 ) with a requirement for the user to be able to search words with special Dutch characters for example if the user ...
0
votes
0answers
47 views

How to add multiple field in search result facet

I am using sxa search result component My Requirement is to sort the result by 2 field, one field check box named isimportant with high priority and second is updated date with low priority. I have ...
0
votes
1answer
67 views

Solr computed index field of type stringCollection not stored as expected

I've made a computed index field in my solution. The class returns List<string> from the ComputeFieldValue method and the config patch includes the field within the fieldMap and documentOptions ...
0
votes
1answer
55 views

Field rules in Search Scope is not working with tags field of my pages

I am using sxa sitecore 9.3, my requirement is to get search result on the basis of sxa tags on the pages, for which I have applied query and rule in search scope. But the tag result is not accurate, ...
1
vote
1answer
80 views

Re-use computed index field for multiple template fields

Is there a way to re-use the code for a computed index field without just making derived classes? I would like to have an additional property in the config which tells the ComputeFieldValue method ...
1
vote
3answers
494 views

Azure Search not working for other language

Using Sitecore 8.2 update 3. I'm new to search & Azure Search and followed this approach to implement the site search functionality on our multi-lingual site. https://kamsar.net/index.php/2014/...
0
votes
1answer
31 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 ...
0
votes
1answer
335 views

Fuzzy search with SearchStringModel in sitecore

Is there any way to implement Fuzzy search with SearchStringModel technique in sitecore?
0
votes
1answer
38 views

Invalid cast from 'System.String' to 'Sitecore.ContentSearch.IFieldMap' [closed]

Sitecore version: 9.3 In my SOLR, the name of my master core is M7_master_index. I am trying to get some result from Sitecore using search. So I am creating the SearchContext in the following ways: ...
0
votes
1answer
213 views

Change the rendering of SXA Search from a page to overlay

I'm trying to view the search results of a search box in a popup not in a page, I've created an overlay with a search results rendering in it and then choose it as the "Search result page", the ...

1
2 3 4 5
9