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
0answers
4 views

Computed Field in Sitecore using Solr and Analyzers

I'm trying to use an analyzer on my computed field to allow searching with spaces. Nothing I've tried works yet. Any ideas? <contentSearch> <indexConfigurations> <...
0
votes
0answers
16 views

Sitecore search to support pdf files [duplicate]

how to implement search to support pdf files? Is it possible with Sitecore 10 & Solr on azure pass?
0
votes
0answers
17 views

Single select and Multiselect checklists not working with Chinese language in Sitecore 9.0.1

I am using Sitecore 9.0.1 with SXA 1.7 and solr 6.6.2.We have requirement for multiselect search for chinese language. I have created a template called fruit with fruitname,color etc as its fields ...
0
votes
0answers
18 views

Commerce search results using multiist selection

We are migrating from Sitecore 8 to Sitecore 9. In Sitecore 8, we have a Multilist which has few values like Pending, Sold, Available or Not Available. When any value is selected, for-example if Sold ...
0
votes
0answers
26 views

Configuring synonym analyzer for lucene

My question is related to sitecore search / content search, which is a topic I'm not fully experienced with, so don't hesitate to correct me :) We just want to use the default Lucene indexer with a ...
0
votes
1answer
48 views

How to show the filter values in Chinese in Sitecore 9.0.1

I am using Sitecore 9.0.1 with SXA 1.7 .we have a requirement that the filter values should get displayed in chinese language. I have created a template with field color and data type multiroot tree ...
2
votes
0answers
91 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 ...
1
vote
0answers
37 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 ...
2
votes
1answer
56 views

Rebuild search index inside Sitecore 10.1 CMS not showing sitecore_web_index or sitecore_master_index or sitecore_web_core

I was trying to implement search functionality with Solr on Sitecore 10.1 instance. But Im not able to find the following default indexes: sitecore_web_index sitecore_master_index sitecore_web_core ...
2
votes
1answer
44 views

Control the order of indexes during rebuild

I have the following scenario implemented in sitecore 9.2 and which uses azure search: index1 is configured to index around 100k items under /sitecore/content/shared/data index2 is indexing around ...
2
votes
0answers
32 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 ...
1
vote
1answer
32 views

Droplist field type and Drop link field both are showing Item ID in sitecore 9.0.1

I am using sitecore 9.0.1 and sxa version 1.7. I have created a custom template with field type Drop link for the search functionality and created a rendering varient for it .But it is displaying Item ...
0
votes
0answers
19 views

How to change the order of Checklist filter facet in sxa

We are using a checklist filter to filter the data of a sxa search result. Is there any way to change the order of the facet(choices) that gets displayed? I am using a tag treelist to get the data
0
votes
2answers
88 views

Sitecore 9.3 Solr ContentSearch does not get the right language

I have a site with the language english (en -> default language) and portuguese (pt-BR). Now I have the problem that on the portugese website there are shown items of the english language version. ...
2
votes
1answer
79 views

How to make a cache exist for the duration of an indexing operation

Is there a way to create a Sitecore custom cache which exists for the duration of an indexing operation. I would like to store frequently looked up relationships which can be re-used by different ...
0
votes
1answer
22 views

Is it necessary to create sxa cores in solr 6.6.2

I am Newbie to Sitecore 9.0.1. I am building a SXA site for search functionality. Setting up of Sitecore and Solr 6.6.2 is done and I have installed SXA 1.7. Does the cores should be created for SXA ...
1
vote
1answer
57 views

Does Re-Index Tree command in Content Editor always cause a recreation of Solr documents

I'm using the "Re-Index Tree" button in the Content Editor (Developer toolbar). I run a query in Solr admin just after to examine the indexed document and for some reason, the ...
3
votes
1answer
74 views

How to exclude an item based on template when using find-item in Powershell

I'm working on this script: $criteria = @( @{Filter = "NotEquals"; Field = "_template"; Value = "{A87A00B1-E6DB-45AB-8B54-636FEC3B5523}"} ) $props = @{ Index = &...
0
votes
2answers
41 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 ...
0
votes
0answers
18 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
19 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
1answer
39 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 ...
1
vote
1answer
101 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 ...
0
votes
0answers
35 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 ...
2
votes
2answers
110 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
72 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 ...
0
votes
0answers
25 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
45 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 ...
1
vote
1answer
91 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 ...
-1
votes
1answer
106 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 ...
0
votes
1answer
36 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
1answer
102 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
36 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 ...
0
votes
0answers
25 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
46 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 ...
0
votes
1answer
51 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 ...
2
votes
1answer
67 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
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....
1
vote
1answer
27 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
51 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
40 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 ...
0
votes
1answer
129 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 ...
1
vote
1answer
116 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 ...
0
votes
0answers
52 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
33 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
50 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: ...
3
votes
2answers
301 views

Solr tokenization to split on semicolon character

How do I go about configuring fields within a Solr index to be tokenized based on a semicolon ";" delimiter? Initially, I had fields configured as such: <field fieldName="example&...
0
votes
2answers
89 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}...
0
votes
1answer
87 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, ...
0
votes
0answers
20 views

One or several tag repositories for my site?

I have a Sitecore 9.0.2 site that contains a list of shops that are currently only searchable by shop name. We wish to improve the search feature by tagging up shops with: Product categories (e.g. ...

1
2 3 4 5
9