2022 Developer Survey is open! Take survey.

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
44 views

Nested Solr Structure

Is it possible to create a nested data structure in Solr using the content search index configurations? I'm curious if I can create a document like the following, then query against and/or facet the ...
user avatar
  • 3
1 vote
1 answer
69 views

Graph QL Search Result Computed Field

I have started to look at using Graph QL for search using the endpoint that comes out the box with Sitecore 10.1. I've read that the results are based on an item but had lazy loading eg. You have ...
user avatar
1 vote
1 answer
50 views

Maintain Facet count after faceting

I'm using Sitecore 9.3 and Solr 8.1.1. I'm developing a search filter using Sitecore Content Search API, with the behavior of keeping the facet count the same even after selecting options. For example,...
user avatar
0 votes
0 answers
39 views

Read SXA Search Scope in Code

everyone , I've to read the SXA search scope in my code. I am using the search result component on my page and added some custom filters in the search scope. So I need the applied search filter on my ...
user avatar
0 votes
0 answers
40 views

SOLR on Azure App Service - known issue reference

We are experiencing index being locked sometimes. It doesn't happen often and restarting SOLR service is the only workaround. We found the following thread that people mentioned it is a known issue. ...
user avatar
  • 1
2 votes
1 answer
64 views

How to create an anchor tag of General Link field

We are getting results through Content Search API and getting the General Link field value into it. We would like to add an anchor link based on a general link field value. Do we have the default ...
user avatar
  • 1
0 votes
1 answer
48 views

How to get content search result in Sitecore? [closed]

I have a droplist field value and based on this value would like to get result from Solr search provide. Could someone assist me on this ?
user avatar
  • 139
0 votes
2 answers
47 views

Sxa custom search token query Wrong date format

I have added a new sxa token processor to filter the passed date events, This is my Code protected virtual SearchStringModel BuildModel(string fieldName) { Log.Info($"SXA_Token ...
user avatar
0 votes
1 answer
47 views

How to implementing keyword search with xconnect contact facet search?

I am using Sitecore 10 and trying to implement keyword search with xConnect contact. I want to search for contacts that have email or phone number that contains the inputted keyword. Below is my ...
user avatar
1 vote
1 answer
65 views

How to search only curly braces i.e. { } in Solr search using Solr URL

As shown in the picture, I have some tokens in a computed field and want to search all those fields which have { }, but not able to do so, although I have put escape sequence i.e. I have tried to ...
user avatar
1 vote
1 answer
28 views

Sitecore 10 Desktop search direct hit result

In Sitecore 9 or 10 - I'm not sure which as I skipped v9 - Sitecore have removed Sitecore.Pipelines.Search.IDResolver which is used in the search pipeline as defined in the OOTB Sitecore config in SC8:...
user avatar
0 votes
0 answers
43 views

Apply sorting on specific template

I'm using Sitecore 9.3, I have search API that fetches two types of templates, Product and Content Page, the search results are always a combination of these two types. I apply boosting on Product ...
user avatar
0 votes
1 answer
37 views

Search and replace HTML code on multiple pages

I have an old image map that appears on 500+ pages. I would like to delete it and replace it with inline SVG. I know you can search and replace text, but is there a way to search and replace code on ...
user avatar
  • 1
0 votes
2 answers
56 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....
user avatar
0 votes
0 answers
53 views

How to disable xDB related search indexes in SItecore 9.1?

I am trying to reduce amount of indexes (I want to remove all xdb, fxm, marketing indexes), but sitecore documentation is not helpful with it. I created patch to disable Xdb and Tracking and to delete ...
user avatar
  • 163
2 votes
1 answer
97 views

Sorting by date with Solr is returning an incorrect sort order

If I run a normal search query via the content search API, sorted by an indexed date field, it is not sorting the results correctly. I have checked that the sort field on the Solr managed schema is in ...
user avatar
  • 4,735
0 votes
0 answers
36 views

Modifying SXA checklist Filter facet

I have added the checklist filter from the SXA search component. I have to modify the dropdown by entering the box and autocompleting. I would like to modify like the below one without typing a word ...
user avatar
0 votes
1 answer
70 views

Solr QueryElevationComponent being ignored

I'm trying to set up "best bets" in a Sitecore 9.3 environment. I set up the Solr Query Elevation Component following the instructions at this URL: https://solr.apache.org/guide/6_6/the-...
user avatar
  • 11
0 votes
2 answers
76 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]...
user avatar
  • 273
0 votes
0 answers
41 views

Multiselect field with search based on the filter that selection another field by the content author (that also multi select field)

I came across one requirement in which the Multiselect field with Search field should be loaded dynamically whenever the content author selects and click on the filter button (Custom button) another ...
user avatar
2 votes
1 answer
357 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 ...
user avatar
  • 53
0 votes
1 answer
65 views

Search HTML code in Content Editor

I am sorry if this is a stupid question, I am just starting to explore Sitecore. When I use the search function in the Content Editor, it will return the items that contain my search query. But it ...
user avatar
  • 103
0 votes
2 answers
34 views

Semantic Tag Based Sxa Search not showing result on solr search service

I am using Sitecore 10.1 with Sxa on solr 8.4.1. The sxa scopes based on templates having any semantic tag is showing result in build query, but not on page preview nor published page. Example query : ...
user avatar
  • 63
0 votes
3 answers
110 views

How to write the query for grouping of articlecategories to fetch the count of article in Solr

I would like to query in Solr, to pass the list of categoryID('cat001','cat002','cat003','cat004'), based on the categoryID, we need to get the count of Article of passed categoryID in the Solr Query, ...
user avatar
0 votes
0 answers
50 views

Solr - Can I change the "_indexname" field from "string" to "lowercase" using config files?

I've realized that since Sitecore 10.1 the Solr "_indexname" field is a "lowercase" instead of a "string" as it used to be. Is it possible to override its type in lower ...
user avatar
  • 2,221
0 votes
1 answer
95 views

Load Site based item only in 'Multilist With Search'

I am working on Sitecore 9.1 with SXA multisite application. I have a folder in every site e.g Site-1/data/Tags/ I created page items with a field Multilist With Search type Now I want to load data ...
user avatar
0 votes
0 answers
23 views

SEO Reports and Branded Location Searches

I use SEMRush for keyword position tracking, but need something to help the below searches in some other type of report. Our company has multiple locations in the US, and as the company grows and more ...
user avatar
  • 1
0 votes
1 answer
94 views

Popular search keywords not being tracked

I am using Sitecore 9.3 and trying to track and display the popular search terms used on the website. However, I am not seeing the search keywords being tracked as intended in Internal search ...
user avatar
1 vote
1 answer
45 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 ...
user avatar
0 votes
0 answers
41 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 ...
user avatar
0 votes
0 answers
49 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
user avatar
  • 1
0 votes
0 answers
56 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 ...
user avatar
  • 181
0 votes
1 answer
118 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, ...
user avatar
  • 1
0 votes
1 answer
62 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 ...
user avatar
2 votes
1 answer
73 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["...
user avatar
0 votes
1 answer
44 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 ...
user avatar
0 votes
0 answers
75 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 ...
user avatar
0 votes
2 answers
132 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 ...
user avatar
0 votes
1 answer
81 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 ...
user avatar
1 vote
1 answer
53 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 ...
user avatar
2 votes
1 answer
531 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 ...
user avatar
  • 16.4k
0 votes
1 answer
136 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:[...
user avatar
  • 5,040
0 votes
1 answer
131 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 ...
user avatar
0 votes
1 answer
51 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) ...
user avatar
0 votes
1 answer
82 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 ...
user avatar
  • 181
1 vote
2 answers
186 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> <...
user avatar
0 votes
0 answers
32 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?
user avatar
  • 499
0 votes
0 answers
30 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 ...
user avatar
0 votes
0 answers
50 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 ...
user avatar
0 votes
1 answer
71 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 ...
user avatar
  • 181

1
2 3 4 5
10