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
2
votes
1answer
69 views

Issue with the Like operator on my custom field

My field configuration on Sitecore: <field fieldName="unifiedtitle" storageType="yes" indexType="tokenized" returnType="string">Project.Foundation.Indexing.ComputedFields....
2
votes
2answers
142 views

Get the Json result thrown by SXA Search before rendering it

Working with Sitecore 9 (Update 1), SXA 1.7 and Azure Search. I am using the Map component along with Location Finder and Search Results component. I want to do some changes on the results thrown by ...
2
votes
2answers
83 views

How to load search result based on user location by default

I want to load the search results by user’s current location by default or first time when user lands on the page. Does Sitecore supports this feature OOTB or or any custom solution available? I’m ...
2
votes
2answers
279 views

Computed index fields on Sitecore 9.1.1 CD server

I have a custom computedfield in Sitecore 9.1.1. I am getting the below error on CD server only as my web.config has: <add key="role:define" value="ContentDelivery" /> Current CustomIndex ...
2
votes
1answer
190 views

Index Update Strategy not Firing on Publish End with Custom Publishing Target and Custom Solr Index [duplicate]

We have a prod set up that has one CM and two CDs. The CD servers serve content from a second web database that we call "live". This database is a clone of web. We use web as a staging environment on ...
2
votes
1answer
84 views

Do we need to trigger SXA indexes after cloning a new site?

This is the first time working on SXA Search. We have an SXA site with search in working condition. We cloned a new site from the existing one and using master database for now but the search page is ...
2
votes
1answer
381 views

Custom Azure Search Index returns '&search=This_Is_Equal_ConstNode_Return_Nothing' for searches

I have setup an custom Azure Search index in Sitecore 8.2 u7 and was getting no results returned even though I have data in it (I can see the data in the Azure console). Looking in the Sitecore Search ...
2
votes
1answer
763 views

Could not resolve type name error while performing search in Sitecore in Content tree

After logging to the Sitecore content tree, getting the below error while performing the search. An error occured while searching. Rephrase the query. Could not resolve type name: Sitecore....
2
votes
1answer
203 views

What is Sitecore.ContentSearch.SearchTypes.Content Property which maps solr _content field?

What is _content in SOLR. While mapping through Sitecore, what are the fields will it map? Is it good practice to use Content property in search query builder? In that case, How will it work in ...
2
votes
1answer
637 views

How do I search for a value in a parent item field?

I have several items (news stories) that are contained within a section (like a category) that span multiple issues and publications. The sections are mostly repeated in every issue and many times ...
2
votes
1answer
106 views

How Coveo reads indexes?

We are using Coveo on perm 4.0 edition with Sitecore 8.1 update 3. We have CM and CD configured to use the Coveo indexes. When I query the results on CM and on CD it uses different indexes So how ...
2
votes
1answer
22 views

IndexField attribute not working after upgrade to 9.2 on Solr

We upgraded our solution from 9.0.2 to 9.2 and now our search queries using a class that overrides SearchResultItem and having properties that use an [IndexField] attribute to set the name of field in ...
2
votes
1answer
98 views

How to apply stop words at Solr query time?

I'm having some fun with Solr and here is my current issue. I've applied some stop words using the stopwords.txt file and rebuilt my indexes. Everything looks fine here, I can see that those stop ...
2
votes
1answer
45 views

SXA Autosuggestion work after two characters

I'm using Sitecore 9.1 and SXA 1.8, the autosuggest works after entering two characters if I want to change it and make it work like after three characters, Where can I change it.
2
votes
1answer
88 views

Excluding template fields from indexing - difference between documentOptions exclusion vs regular exclusion

I reducing the number of fields which get indexed in my site. I looked at App_Config\Include\Sitecore.ContentSearch.Azure.DefaultIndexConfiguration.config and see the section <configuration <...
2
votes
1answer
202 views

Getting the primary Azure Search Index name after index re-build

We are using Azure Search on Sitecore 8.2 update 7 and have enabled switch on rebuild. This is documented here: https://doc.sitecore.com/developers/91/platform-administration-and-architecture/en/zero-...
2
votes
2answers
152 views

How is the name of the primary index name stored when using SwitchOnRebuild in Azure Search?

We are using Azure Search for a custom index and I have SwitchOnRebuild enabled in my config patch. <!-- USE SWITCHONREBUILD Determines if Azure Search provider uses SwitchOnRebuild() ...
2
votes
2answers
812 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
749 views

How to configure SXA Search Box to search based on Fields of a certain template?

I want to add a Search box in a blogging website, specifically on a page where all the blogs appear in a "search results" component. I've tried adding the SXA search box component and connecting it ...
2
votes
2answers
1k views

How to correctly login as Virtual User to use the Sitecore Content Editor? (Avoid Media Library Search redirects)

I have a situation where I need to use VirtualLogin to enable a user to access the sitecore shell and use the Content Editor / Media Library editor. This is the code for the Virtual Login (from many ...
2
votes
1answer
1k 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 [...
2
votes
1answer
402 views

Content Manager returns empty list

I am on v8.2 Using SOLR as search index. I have the items indexed and can see them in the index. I kicked off index rebuild a few times. However, ContentSearchManager.GetIndex("sitecore_web_index")....
2
votes
1answer
442 views

Sitecore Context Database during computeField index

When I call Sitecore.Context.Database inside of an IComputedIndexField, it returns Core. I can't use this to call the GetItem() function. Thus, I wrote the following as a workaround. var ...
2
votes
1answer
428 views

How to search by a date with ContentSearch and IObjectIndexers

I have a generic search method which should be able to search based on any field. I have something like this: criteria = x => x[FieldName] == fieldValue; This works well for strings but, how can I ...
2
votes
2answers
737 views

Perform multi-language search sitecore

I have small issue with search results where its showing duplicate items because it has different version created and sometimes it only shows default language version. The code i have is as per ...
2
votes
1answer
39 views

Clone SXA OOB component javascript

I am using Sitecore 9.1 and SXA 1.8, I need to clone "component-search-results-count.js" in base theme to extend some functionality to the OOB "Search Result Count" component. How can I do that?
2
votes
1answer
37 views

Filtering Content Editor global search in SOLR

When I use the global search in the Content Editor in my Sitecore 8.1 instance (that uses Lucene), the search.log displays the following output: ExecuteQueryAgainstLucene (sitecore_master_index): ...
2
votes
2answers
235 views

What is the fix for solr error 'undefined field _indexname' after building custom index in sitecore (v9.1.0)?

I created a new custom index named CUSTOM_SERVICES_INDEX using this command: C:\solr\solr-7.2.1\bin>solr.cmd create -c [custom index name] (cmd as administrator) then I created the config file ...
2
votes
1answer
49 views

Rebuild all Solr indices script hangs

I have a piece of code that performs a full rebuild for all Solr cores (using Sitecore XP 9.1.1): foreach (Sitecore.ContentSearch.ISearchIndex index in Sitecore.ContentSearch.ContentSearchManager....
2
votes
2answers
428 views

Searching a substring using solr

I am trying to move my code from Lucene to Solr, but am facing an issue. I have 4 fields indexed, all the field are of text_general type (from the managed schema). The code from Lucene is: ...
2
votes
1answer
411 views

Search not working in multi-language site

We are using Azure search. This is a website search. End user enters the keyword and the pages where it is present in the content, are returned as search results. The functionality works fine when ...
2
votes
1answer
430 views

Issue in SXA search scope: no results due to searchable_b:(True)

I am using SXA in Sitecore 9, I have created simple search scope with below query: template:{cbb0f1aa-1a19-4c0a-a897-49af144cb801};+location:{3F38A230-25BB-4DBA-B9D3-2CE94F842072} From UI there are ...
2
votes
1answer
526 views

Rule to set datasource based on search result

Using sitecore 8 (8.2 update 3 to be specific) I'm looking to be able to create a rule based on some condition which will set the datasource (and maybe rendering) to the most appropriate result from ...
2
votes
3answers
1k views

SearchResultItem POCO not populated

I have a class (SBJSearchItem) that inherits SearchResultItem that I'm using with the ContentSearchManager. The problem is that some of my SBJSearchItem properties are not populating. I'm using Azure ...
2
votes
0answers
46 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
0answers
64 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
1answer
84 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&...
2
votes
0answers
59 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
1answer
196 views

search component- suggestion issue

Working on Sitecore commerce 9 update 1. Search-box is listing multilingual suggestions when typing. I have an item with content in English and Chines version. I have 2 issues to highlight, When ...
2
votes
0answers
121 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
63 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 ...
2
votes
1answer
139 views

SearchQuery in a saved search given multiple conditions

I am trying to figure out how to give multiple 'AND' conditions in a Saved Search which is under an item bucket. Currently I have the following location:{0a6536b7-afe8-4121-ae74-ef7501e36491};...
2
votes
1answer
92 views

Solr QueryElevationComponent component usage

I am hoping to use the Solr QueryElevationComponent for best bets on my site search. Hooking it up was easy enough, the biggest issue I have is _uniqueid field which is used by the component to ...
2
votes
0answers
619 views

Content Search Functionality Not Working [closed]

I am working on a search functionality to return items with certain template, location of the folder to look for in, and has the item name: var predicate = PredicateBuilder.True<SearchResultItem&...
2
votes
0answers
71 views

When will the sitecore azure search provider be released? [closed]

I saw there was a Roadmap from earlier this year saying Azure Search Provider would be included in 8.2 update 1 to be released this year. Along with Azure session redis cache. Has anyone got any ...
1
vote
1answer
656 views

How to rebuild Lucene Index using API?

We have to rebuild Lucene index on our CD server. Is there any Sitecore API to rebuild Lucene index? or rebuild a portion of tree items?
1
vote
1answer
448 views

Sitecore Content Search not returning back fallback items

We are on latest version -Sitecore 8.2 update 3 Below is the query we are using to get all composers for language es-es. It's giving back 3 results. That's partially right as there are only 3 ...
1
vote
2answers
333 views

Search results with starting date equal to Today

I need to search the content that has a date equal to today so that the search results component would only show the items that are only valid for today and later I'm using SXA 1.7
1
vote
1answer
48 views

Lucene Search Item start location

We are having the below item structure in sitecore and using Lucene Index, Home -- Products A Repository Product 1 Product 2 Product 3 -- Products B Repository Product 1 Product 2 Product 3 ...
1
vote
1answer
56 views

Index two different template fields into the same index field

Say I have a template "ArticlePage" which includes the field "ArticleTitle" and then I have another template called "ContentPage" which includes the field "Title". (I know this is not an ideal setup, ...