Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
13 views

Custom query in SXA search scope

Using Sitecore, I have defined some tags, related to food or pet type and assigned some of these tags to pages How can I limit search scope to find all pages which have any food tag assigned ?
2
votes
1answer
38 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 ...
0
votes
0answers
27 views

DatabaseCrawler override no longer works after upgrade from Sitecore 7.2 to 9

In 7.2, Below function AddAllFields was overridden for a custom search implementation. public class DatabaseCrawler : Sitecore.Search.Crawlers.DatabaseCrawler { protected override void ...
0
votes
1answer
30 views

Sitecore 9.1 upgrade Error loading hook

We're upgrading from Sitecore 8.1 Update 3 to Sitecore 9.1. We use Solr for xConnect search, Lucene for web site search The CM is working, but the CD is not. Got the following error message: Server ...
3
votes
1answer
42 views

Convert Ancestor-or-self to content search

I'm currently converting Sitecore queries to use Contentsearch. There is a query that uses ancestor-or-self. Specifically it's looking for an item with a template. Sample code below: Sitecore....
0
votes
1answer
24 views

sitecore checkbox field not showing the _b suffix after indexing , as the dynamic field suggests

I was converting my lucene index to solr and found error in solr searchlogs ( undefined field hide_from_search ) which is a checkbox field in sitecore ,and while creating the query i have passed ...
0
votes
1answer
26 views

Where to check the index that is configured from SXA Search API?

When I request the url https://mydomain/sxa/search/results?q=test, below is the response {"TotalTime":259,"CountTime":211,"QueryTime":38,"Signature":null,"Index":"sitecore_sxa_web_index","Count":0,"...
1
vote
1answer
20 views

Do indexes with computed fields with storageType=“no” need to be rebuilt?

If a computed field is computed at run-time when storageType is set to no, does does the index need to be rebuilt at all as it's all done in memory?
1
vote
1answer
42 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
0answers
37 views

Sitecore Content Search API returns expected results with Lucene as search provider but not with Solr

I'm currently writing a service that needs to integrate with Eventbrite to store external event information as items in Sitecore. We run a Sitecron job every 4 hours to pull in and update the ...
1
vote
0answers
30 views

How does sitecore search (Lucene) handle duplicate field names stored in index?

Luke is showing two fields with the same name for a document. When executing a search does sitecore search both fields or does it only search the first one. And if that's the case is there a way to ...
0
votes
0answers
29 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
47 views

Sitecore Solr Slop Defaulting

Running into a bit of an issue using Slop with SOLR. Previously on Lucene indexes we were able to use the .Like() method on the IQueryable result from the SearchContext. The code runs roughly like so ...
2
votes
1answer
50 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&...
1
vote
0answers
17 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 ...
0
votes
1answer
47 views

Azure Search &search=This_Is_Equal_ConstNode_Return_Nothing

I have a site that I have recently been upgrading from 8.2 to 9.1 and everything is looking good EXCEPT anything that relies on search funcionality. Any Azure search has in the info log: 2019-02-...
1
vote
1answer
50 views

Error message: Value of the StartSearchLocation '' is not a valid GUID. '{11111111-1111-1111-1111-111111111111}' will be used instead

I'm seeing this error repeatedly in the logs in our CM instance of Sitecore 8.1 update-3. Where does it come from? ERROR Value of the StartSearchLocation '' is not a valid GUID. '{11111111-1111-...
1
vote
1answer
12 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() ...
4
votes
1answer
69 views

Hide a page from search results in SXA

Is it possible to mark a page as hidden from search results in SXA 1.8 Sitecore 9.0.2? I have a scope defined where the particular page template is allowed but there are exceptions when I would like ...
1
vote
1answer
46 views

_content field not populating correctly

We're on Sitecore 8.1 update 2 and I'm having issues with the content search API. Its my understanding the _content field in the index should contain an amalgamation of all the fields in the template. ...
1
vote
1answer
35 views

Is there a way to append an indexed field to a glass mapper object?

I'm generating a custom sitewide search by indexing the rendered HTML of the pages on my site. Some pages will have a title and description field defined to display in the results, however, some ...
2
votes
1answer
42 views

ContentSearch Where vs Filter

When using the ContentSearch API what is the difference in using Where vs Filter and can this have any influence on the results? From the Sitecore documentation : Filtering is similar to using ...
1
vote
0answers
35 views

Custom index search -Solr [closed]

Any good suggestions for implementation of custom index based solr search in sitecore 9 For example any product name is clicked.the filtered result of product name should be populated in the home ...
4
votes
2answers
47 views

Sitecore ContentSearch results order is not same as raw Solr search results

Sitecore ContentSearch is not providing result in the same order like Solr query does. http://localhost:8983/solr/sitecore_web_index/select?indent=on&q=_content:testorder&wt=json we are ...
2
votes
1answer
187 views

Rebuilding Indexes with SOLR throws Exceptions

I set up a fresh Sitecore 9.1 with SXA on my local machine. When rebuilding the indexes, I get the following messages: (Core) 19676 14:50:03 WARN Could not compute value for ...
-1
votes
1answer
75 views

Product ID or name is not searchable

I am working on Sitecore commerce 9 update-1. Many customizations are already done till now. For searching I'm using the default Search component. Issue :- Product is not searchable by Product ID/...
1
vote
1answer
79 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 ...
0
votes
1answer
41 views

Fuzzy search with SearchStringModel in sitecore

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

How to sort Sitecore items by popularity

I'm using Sitecore 9 update 1 and SXA 1.7, I want to sort Sitecore pages by popularity, I opened the Reporting database and found many tables like Fact_Visits, Fact_PageViewsMetrics and ...
2
votes
1answer
80 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 ...
0
votes
2answers
75 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 ...
1
vote
0answers
43 views

Items inside composite items are not listed on search

In SXA Search we are not getting the results for items present inside composite components like Tab/Carousel components. Does anyone have any suggestion that might help?
3
votes
1answer
72 views

How are search keywords saved?

I'm using Sitecore 9 update 1, I'm trying to get the top trending search keywords by users for my website. I discovered that the local search keywords are stored at table DimensionKeys in the ...
1
vote
0answers
41 views

Virtual Folder defined for a language site not working with Data API URL

We are on multi-lingual websites having en-CA and fr-CA languages as well. We defined virtual folder for fr-CA to share the same domain name with en-CA. Hence the en-CA works on www.mywebsite.ca and ...
4
votes
1answer
87 views

SOLR datetime fields not readable

In my SOLR index, all my datetime fields have encoding in them and not date data. I have compared my configs with a vanilla Sitecore 9.0.1 and find no differences. So it seems like it must be a ...
0
votes
1answer
51 views

Where the auto suggest results implemented in SXA?

I'm using Sitecore 9 update 1 with SXA 1.7, I configured the search box suggestion mode to be "ShowsPredictions", I know that the implementation is in Sitecore.XA.Foundation.VersionSpecific.Services....
3
votes
1answer
73 views

How to add externally stored PDF documents to my existing custom index

using Sitecore 8.2 update 4 and SOLR 6.6.0. Currently using a custom crawler to index database records. I have a requirement to now index the actual pdf content the database will house a http://path/...
1
vote
0answers
40 views

Prioritize search word in title over finding the word in any other field?

I got some help in a previous question about prioritizing the title field in searches, however when I run the search now, I continue to to get some results where the word is only in the content field ...
0
votes
1answer
75 views

Unit testing Sitecore ContentSearchManager

I have the following code that returns Items: public static IList<Item> GetAll(Language language) { var index = $"my_index_{Context.Database.Name.ToLowerInvariant()}"; using (var ...
2
votes
1answer
150 views

Way to prioritize title field for search results?

Can we adjust the Lucene search results so that items most likely to be related are shown closer to the top of the results feed - I'm thinking this would involve providing higher weight to results ...
0
votes
1answer
99 views

How Sitecore index primary and secondary sync in SolrCloud?

Let me start of by describing my current set up. I am currently having Sitecore 8.2 update 6 running with Solr Cloud 5.5.1 as a search engine. I have 1 CM and 2 CDs. Solr Cloud is running on 5 servers ...
1
vote
1answer
33 views

Is there a way to do a search in Sitecore against with Lucene using a dynamic field?

My client needs me to write a speak app that can do a search where they can type in whatever field they want to equal a value in the search bar. Is there a way to do a search against Lucene to within ...
5
votes
1answer
118 views

Can the Auto suggest results count be changed in SXA?

I'm using Sitecore 9 update 1 with SXA 1.7, I configured the auto suggester in the Solr, the suggest.count is 30 and the maximum predictive results count for the SXA search box is 30 also, but the ...
0
votes
0answers
43 views

Could SocketException be caused by CloudSearchRetryPolicy?

I'm investigating an issue where we are seeing SocketExceptions and socket handle leaks. Using Sitecore 8.2 rev 107614, in Azure using Azure Search as the search provider. Drilling down to one of the ...
1
vote
1answer
48 views

Multilist with search not loading for non admin

Data on the left side of the multi-list is not loading if the user is a non-admin. I have multisite on a single node so on the data source I've put Sitecore query as StartSearchLocation=query:./...
4
votes
1answer
72 views

How to search for items created in the last X days in Content Search tab?

I have a requirement to create a saved search item under our bucket item, that will display all items created in the last X days, where X is 7 by default but client would like to change that. We use ...
-1
votes
1answer
153 views

Index sitecore_marketingdefinitions_web was not found exception Sitecore 9 XP1 scaled [duplicate]

I have a distributed Sitecore 9 Update 2 XP1 on prem setup. Getting below exception only on the CD servers, upon refresh the error goes away. Any ideas to resolve this? Server Error in '/' ...
1
vote
1answer
43 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 ...
0
votes
1answer
97 views

Sorting search results with multiple facets

I'm using Sitecore 9 and SXA 1.7 I am trying to find a way to sort search results with 2 facets without using custom code or having it affect performance speed. In this case, I have some blog posts ...
1
vote
1answer
80 views

Search using a Search string in SXA Search service

I have a requirement to implement a custom search box and pull search results based on scope and then present the search results by combining components created using two templates. I am trying to ...