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
152 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
194 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
184 views

Check if boost rule has been applied to an item

I am implementing functionality to push certain items in my content tree down in search results depending on a "discontinued" checkbox field. I have created a rule item under /sitecore/system/Settings/...
4
votes
1answer
221 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
691 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
3answers
12k 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
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
1answer
685 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
635 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
175 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
77 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
204 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
274 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
496 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
528 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
525 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
1answer
514 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
103 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
510 views

Programmatically adding items to a custom Solr Index

I'm trying to add some items to a custom Sitecore Solr index Programmatically via the Sitecore Content Search APIs. The items I will add won't reside in Sitecore so the code below is just a test for ...
3
votes
1answer
420 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
806 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
1k 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
380 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
773 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
1answer
343 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
1answer
424 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
768 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
392 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
303 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
206 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
515 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
339 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
283 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
72 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
67 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 ...
3
votes
0answers
111 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
125 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
179 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
354 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
304 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
131 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 ...
2
votes
1answer
72 views

Use the TermFreq() function programatically in Sitecore

I was building query on the basis of the occurence/relevancy of the terms present in a field and got one issue , suppose i searched for a keyword "text" in the content field , and i want to sort the ...
2
votes
2answers
218 views

Solr search query by Datetime.Year

I configured Solr index to the path where I created some articles using templates, templates have the same fields with data type as in below model <Root>/sitecore/content/Articles</Root> ...
2
votes
1answer
180 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 ...
2
votes
3answers
118 views

Error in custom index after upgrading to Sitecore 9

After upgrading to Sitecore 9 and converting custom index files from using Lucene to Solr, I am getting the following error on an Ajax call: Unable to cast object of type 'System.Collections....
2
votes
1answer
680 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 ...
2
votes
1answer
331 views

Sort SXA search results by date without SXA sorting rendering

I have a list of blogs, and I'm using the Search Results component to render them. I need to order them by date: specifically, to show the most recent ones first, so they'd be ordered newest date ...
2
votes
2answers
97 views

How to avoid errors when item assigned to Lucene index is removed?

When a user changes the name or deletes an item with a Lucene index attached to it, Sitecore will throw errors when using any index based functionality - it can break site sometimes. I can think of 2 ...