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
1answer
281 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
vote
1answer
13 views

How to apply a greater/less than DateTime query in Sitecore using the `IQueryable<ContentSearchResult>` Linq?

How do you apply a DateTime field comparison in Sitecore using the Sitecore.ContentSearch SDK? The ContentSearchResult[string key] function always returns a string which cannot be cast into a DateTime ...
0
votes
0answers
20 views

Azure search through sitecore does not return all results

I have setup synonyms for azure search for searching for products on our site. Our products are split into language specific entities. When I search for the product directly I get all language ...
0
votes
0answers
26 views

Getting error in Azure search ""Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"

We are getting result thorough content api using Azure search and solr. In Solr, everything is working fine but when we are trying to get result in Azure search then we are getting the below error
1
vote
2answers
286 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
1answer
193 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
0answers
32 views

Content search - An error has occurred and the search cannot be completed

When I search something in the Content search and it is not working, and the UI shows 0 results with a message on red background under the search bar "An error has occurred and the search cannot ...
0
votes
3answers
474 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, ...
0
votes
1answer
26 views

Solr ContentSearch - 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
1answer
24 views

sxa custom boosting condition for dynamic value from cookie

We have a requirement where we want to boost results based on a value from a cookie/session. The items that contains the value from cookie in a Certain field should be boosted. Hence the rule should ...
0
votes
1answer
28 views

Boosting items by its own field values

I'm using Sitecore 9.3 and Solr 8.2.1, I had Solr index-time boosting in my old search implementation, but after I upgraded to a new Solr version, it is deprecated now. Imagine I have an item with ...
1
vote
1answer
53 views

Sitecore.ContentSearch.Linq is adding backslash to all space characters in search query

Whenever I query using the Like query the Sitecore generated Solr query escapes the space characters. Here is an example: queryable = queryable.Where(result => result["...
0
votes
0answers
29 views

Solr spatial search as part of an OR clause in a content search predicate

When performing content search queries, you can make use of the WithinRadius, OrderByDistance and OrderByDistanceDescending methods of the Sitecore.ContentSearch.Linq.QueryableExtensions class to get ...
2
votes
2answers
226 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
3answers
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
109 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
235 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
446 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
315 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
3answers
298 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
2answers
320 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 ...
0
votes
1answer
48 views

Content Search API issue with Droplist and Treelist fields

I am facing a weird(might not be weird for experienced people) issue where ContentSearch API is returning null value for few fields while I can see the correct values in Solr. The fields whose values ...
2
votes
1answer
291 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 ...
0
votes
1answer
37 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 ...
0
votes
1answer
59 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 ...
1
vote
1answer
167 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
1answer
727 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
191 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
107 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
142 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
40 views

Rule based boosting at the field level

We are using Sitecore 9.1, Solr 7.7 and are NOT using SXA. I tried creating a boosting rule and associated the rule with the template. The rule is as below: where the page title field contains bills ...
0
votes
1answer
59 views

Some records do not appear in multilist with search

I've got a multilist with search field in Sitecore 9.2 that does not return all of the items I know it should be. The field source is StartSearchLocation=[ID of folder]&Filter=_templatename:[...
2
votes
0answers
136 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
votes
1answer
134 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 based on SXA tags on the pages, for which I have applied query and rule in search scope. But the tag result is not accurate, even ...
1
vote
3answers
550 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
71 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> <...
2
votes
1answer
176 views

How do you create a scriban function which implements the Content Search API?

I've seen examples such as here on how to create a custom Scriban function. How would I go about implementing one which supports the Content Search API like that shown here? Example: Function called ...
8
votes
0answers
178 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 ...
3
votes
3answers
842 views

Solr Issues Using Multilist Property on Search Result

I have a multilist field on article items called Categories. In a module I am trying to filter based on one or more items in that multilist field. I can do this if I directly supply the name of the ...
0
votes
1answer
40 views

Could not find property 'IndexAllFields' on object of type: Sitecore.ContentSearch.SolrProvider.SolrIndexConfiguration

I have tried adding IndexAllFields as true in C:\inetpub\wwwroot\subway93sc.dev.local\App_Config\Sitecore\ContentSearch\Sitecore.ContentSearch.Solr.DefaultIndexConfiguration.config. But it does not ...
0
votes
1answer
167 views

Boost search results by field value

I'm using Sitecore 9.1 and SXA 1.8, Is it possible to boost the search results by a specific field value? What I see in SXA boosting rules that you adjust boost by adding a value statically, I want ...
0
votes
1answer
31 views

CreateConnection method doesn't exits in DefaultSolrStartUp - Sitecore 9.3

I am in process of upgrading content serach Solr provider from Sitecore 8.2 to Sitecore 9.3. I am facing some code issue after upgraded the dll(Sitecore.ContentSearch.SolrProvider, Version=6.0.0.0) ...
0
votes
1answer
42 views

SXA Search box is not showing Predictions for Chinese language in Sitecore 9.0.1

I am using Sitecore 9.0.1 with SXA 1.7 and Solr 6.6.2. I have added a search box component and search result component on the same page for a chinese language and also selected the ShowPrdeictions ...
-1
votes
1answer
178 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
0answers
24 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
20 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
1answer
54 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
1answer
2k views

SolrNet.Exceptions.SolrConnectionException when trying to configure custom Solr index

I am migrating a project from 8.2 to 9, and moving indexes from Lucene to Solr. The default indexes are fine, but my custom index is throwing an exception: 53416 08:51:21 ERROR Unable to connect to [...
0
votes
0answers
22 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
31 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 ...

1
2 3 4 5
10