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
4
votes
1answer
104 views

Content Editor Search by ID returns no results

I am very new to Sitecore, going through training, trying to get certified. In the Content Editor, I am trying to find an item by it's ID / GUID. I can navigate down into the tree, find an item, ...
4
votes
2answers
139 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 ...
4
votes
1answer
189 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 ...
4
votes
1answer
243 views

How to use Sitecore SwitchOnRebuildSolrSearchIndex on Solr slave Indexes which are replicated from Master Index

The following is our master/slave configuration by using Solr replication. Here is the image which depicts our configuration: SOLR-master is connected to the CM instance. When the CM rebuilds the ...
4
votes
0answers
99 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 ...
4
votes
1answer
237 views

“Search Tab” for “File” data type gives “The media item could not be found”

I have a structure in which we have a field defined as "File" data type. The requirement is to point this to a specific location within "Media Library". We have done this by specifying guid of the ...
3
votes
1answer
767 views

Boosting Sitecore Lucene Indexing Results

I'm trying to implement Recommended Results feature with Sitecore lucene search for our website. I'm thinking to implement a Tag field, and depending on the tags selected for a page item, boost the ...
3
votes
1answer
261 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 ...
3
votes
2answers
1k views

Sitecore Search: how to query by Id using the indexer on the SearchResultItem

I'm trying to do this: queryable.Where(i => i["_template"] == templateId); Where templateId is a Guid string, but it doesn't work. However, this does work: queryable.Where(i => i["...
3
votes
3answers
13k views

How to query Solr with spaces and slashes in the filters?

I have a Sitecore 8.1 instance using Solr 4.10. I have a custom field in my Solr index called read_roles. It is a list of Sitecore roles that can read a given item. Here is an example of what that ...
3
votes
1answer
186 views

Displaying SXA Search Results on the separate page

I'm currently working on SXA OOTB the Search Box and Search Result rendering. SXA sites structure is as below Sites Country Site 1 Country Site 2 Shared Site I have search box in the site header ...
3
votes
1answer
754 views

Using alternate ContentSearch analyzers

I am looking into using some of the alternate analyzers provided in the Sitecore.ContentSearch.LuceneProvider.Analyzers namespace. Specifically what I would like to achieve is to: Create copies of ...
3
votes
1answer
662 views

Boosting a computed index field in _content

I have created a computed index field for our custom Lucene search index, and I have noticed that the contents do not get automatically added to the "_content" field in Lucene. I would like to be ...
3
votes
1answer
188 views

How can I hide old page versions in SXA Search Results in Preview mode?

I created multiple versions for my page. I see only last version in Search Results SXA component when page is rendered in normal mode (what is expected). Although, when I switch to Preview mode, all ...
3
votes
1answer
87 views

What parts of the Sitecore back-end are dependent on sitecore_master_index sitecore_web_index and sitecore_core_index

As per title; what functionality in the Sitecore back-end is dependent on the indexes sitecore_master_index sitecore_web_index sitecore_core_index
3
votes
2answers
228 views

Adding Dynamic Fields in Bucket Search Results

We are trying to add dynamic fields in a bucket search results view. We want to display custom fields. In the previous versions of sitecore there use to be a DynamicFields pipeline. As stated in the ...
3
votes
2answers
303 views

Is there possibility to use Solr in Sitecore PaaS?

Clients wants to go full PaaS with Sitecore 9 and Sitecore Experience Commerce 9. We have existing solution which was built with Sitecore 8.2 and Sitecore Commerce 8.2.1 with Solrand it's deployed as ...
3
votes
3answers
638 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 ...
3
votes
2answers
607 views

Use the ItemService to perform a content search

quick background, got a standalone app (.exe) which imports "products" into a Sitecore site and basically i need to do a content search for a field on the external product e.g. productId (saved on the ...
3
votes
1answer
610 views

Checking For Template Inheritance In An Index

Is there a built in way to get all items in an index that inherit from a base template? I've seen a custom solution doing something similar to what is described here and was surprised there wasn't a ...
3
votes
3answers
893 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 ...
3
votes
1answer
738 views

Sitecore Search API not searching List of Guids Unsupported expression node type

I have created an index field called "facetCategory". public class IndexResultModel : SearchResultItem { [IndexField("facetcategory_sm")] public IList<Guid> FacetCategory { ...
3
votes
1answer
2k views

How to search item content in a rendering with multilist fields

This question is about the best/simple way to achieve the website search functionality. There are pages in the site, and each is made up of few components. When the end user searches for a keyword, ...
3
votes
1answer
2k views

Glass Mapper: Failed to map property

I'm using Glass 4.2.0.184 with Sitecore 8.1 Update 2. I'm receiving an error in an API controller setup with a helper function that's retrieving items from search and then casting them to a model. ...
3
votes
1answer
46 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 ...
3
votes
1answer
314 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-...
3
votes
1answer
567 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....
3
votes
2answers
270 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() ...
3
votes
1answer
686 views

ContentSearch predicates for filtering on a multilist field

I'm trying to figure out why certain code is needed in order for a content search query to work with Azure search. I have a multilist field which is indexed by the default indexer in Sitecore, meaning ...
3
votes
1answer
131 views

SXA Search results Tooltip

The SXA search results tool-tip contains the display name of the item as shown in image below I want to make the tool-tip reads its content from a specific field of the item template, as I have a ...
3
votes
1answer
503 views

Sitecore Azure Search - There is no appropriate index for /sitecore - {11111111-1111-1111-1111-111111111111}

I have a Sitecore 9.0.1 instance running in Azure and uses Azure Search. My search index is working as far as I know and can be rebuilt. Earlier this week, I hit the problem with Sitecore Azure ...
3
votes
1answer
966 views

Bucket Items and Glass Mapper Retrieving

So I am trying to bring back a list of Bucket Items and map them using Glass Mapper. A couple of issues I am running into. I tried as you can see using the News glass model, but I get back several ...
3
votes
1answer
400 views

Searching the date array

I have the following setup: I'm indexing Sitecore items (Employee) in Solr I have the computed field "checkins" of type stringArray set in the index Checkins is list of datetime values I get from ...
3
votes
2answers
909 views

How to apply query boost on certain fields

I am using regular ContentSearch API in front of Coveo for Sitecore 3 (not using Coveo UI). I am trying to boost keywords in Title and Subtitle fields to have higher weights compared to page Content. ...
3
votes
2answers
100 views

Querying DropLink field from Sitecore to SOLR

In my template, I have a field called Category which is a type of DropLink and not MultiList. When I tried to find it in SOLR, I got this field as below. "category_sm":["{951063A6-0BBA-484F-8CAB-...
3
votes
1answer
813 views

Object reference at application initialize after changing to solr search provider

i encounter this error after changing my search provider from lucene to solr. Some details: Sitecore 8.1 Update 1 Solr 5.2.1 Followed sitecore KB article https://doc.sitecore.net/...
3
votes
2answers
398 views

Sitecore 8.2 Update 1, Using SOLR for both CMS search and Web search

Can SOLR be used for Sitecore search and website search with latest release 8.2.1. the solution needs to be deployed on Cloud Is it required to have Coveo and SOLR both in order to implement search ...
3
votes
1answer
1k views

Could not find configuration node: marketingDefinitionSearch/indexConfigurations/marketingDefinitionLuceneIndexConfiguration

Getting Following Exception in CD Server where Xdb is enabled and rest all configs are disabled. Master Database has been turned to Pub Database(Live Database). 3248 21:44:46 ERROR Error loading hook:...
3
votes
2answers
341 views

Why would SearchResultItem.Paths be null?

I am using Sitecore 8.1 with Solr 4.10 doing a general site search. I have a repeater on my search results page and I am binding the results to that repeater. For some reason in my QA environment I ...
3
votes
1answer
248 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 ...
3
votes
1answer
569 views

Querying Solr datetime Collection

I have a Sitecore 9 instance using Solr. I'm trying to query a collection of datetimes such that if any of the datetimes in that collection are within a range that item will be returned. The issue ...
3
votes
1answer
369 views

SOLR search field type of “textCollection” and “Coordinates” are not generated in schema.xml when using SXA

Sitecore 8.2.4 SXA 1.4 I have configured solr with all required installation and configuration outlined by the Sitecore Documentation site. I have enabled the following sxa solr config for SXA search ...
3
votes
2answers
322 views

Extend search to include other sites in SXA not showing result

I have Site1 and Site2 in same tenant and I want to see serach results from Site2 while staying in context of Site1. I have also added Site2 in "DatasourceSearchScope" Site1 -> Settings -> Search ...
3
votes
1answer
79 views

Lucene Spatial Search Support Module Not Working with 8.1

I need your help! Has anyone gotten the Lucene Spatial Search Support module to work in 8.1 that can provide me a tip or hint. From my research, and what I have done to this point, it should be ...
3
votes
0answers
170 views

How to search all the articles that have the same (or at least one) tag with the current page?

I found TaggedTheSameAsCurrentPage|SxaTags and TaggedWithAtLeastOneTagFromCurrentPage|SxaTags that is similar to what I need. However it doesn't return any results. I couldn't find much ...
3
votes
0answers
149 views

SOLR CLOUD error on looping through search result on 9.0 Update-1

I'm trying to setup SOLR Cloud to work with my Sitecore 9.0 (Update-1) instance. I'm using 3 different VMs with [1-Zookeeper + 1-SOLR 6.6.2] configured on all machines. I have added the following ...
3
votes
1answer
189 views

What are some methods for indexing and searching content from multiple sites? [closed]

Pretend you have a small client that is on Sitecore 8.2 on-premise (virtual servers). Traffic is pretty light, and they get away with using just 2 servers (1 DB and 1 Web). Needless to say budget is ...
3
votes
1answer
372 views

Add facets to the Content Editor search page

I have a folder which is a bucket and I'm using the search functionality to get the results. By default I have 4 facets on the right column: Template, Language, Author and Date Range. I see on the ...
2
votes
1answer
386 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 ...
2
votes
2answers
339 views

Search in content editor for checkbox field value

In the content editor's search functionality, is there a way to perform a search to find items where I'm checking for the value of a boolean/checkbox field? Like if I have an "active" checkbox in my ...

1 2
3
4 5
9