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
2answers
780 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, ...
1
vote
1answer
97 views

Rebuild Search indexes error: “System.ArgumentException”

My "Rebuild search indexes" aborts and produces this error: "System.ArgumentException: it doesn't make sense to have a field that is neither indexed nor stored". but which field, which Item ID? ...
1
vote
2answers
403 views

Sitecore Elastic Search

In Sitecore (Sitecore 9) to get search results from different-2 third party systems including Sitecore, we need to use Elastic search instead of default Solr search in Sitecore 9. Is my understanding ...
3
votes
1answer
487 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 ...
0
votes
1answer
317 views

Do I need a SearchCrawler to add and update items in a custom Solr Index?

I have an custom index where I will store data that doesn't exist in Sitecore, it has the following configuration: <?xml version="1.0" encoding="utf-8" ?> <configuration xmlns:patch="http://...
4
votes
1answer
748 views

Config patch/hack to temporarily disable index update

Is there some easy config patch or hack I could make which would disable all indexing activities? I want to do this for things like package installation and also deletion of large content branches ...
3
votes
1answer
493 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 ...
10
votes
1answer
609 views

Is there a way to define index per site in SXA

There is a lot of reasons why I would like to have a separate index per site (or even per language). Some of them are: separation of data keeping the index small which increase performance not ...
5
votes
1answer
1k views

“There is no method 'Filter' on type 'Sitecore.ContentSearch.Linq.QueryableExtensions' that matches…”

I'm re-posting because the other thread on with 'GetResults' instead of 'Filter' SOLR error message is in a different context. This thread was when migrating from 8.1 to 8.2, while we are migrating ...
1
vote
0answers
68 views

Error Log : "There is no method 'Filter' on type…” while migrating Sitecore version [duplicate]

This is not a duplicate of: There is no method 'GetResults' on type 'Sitecore.ContentSearch.Linq.QueryableExtensions' that matches the specified arguments because the patch applied ...
0
votes
1answer
331 views

Sitecore Content Search is not working in the Content Editor

I'm getting the following error while performing Sitecore content search: ERROR Could not resolve type name: Sitecore.Support.ContentSearch.Client.Pipelines.Search.SearchContentSearchIndex, ...
1
vote
1answer
92 views

Plural terms and Sitecore lucene

Sitecore 8.2 U6 I have been experimenting with the Sitecore stemming analyzer. Sitecore.ContentSearch.LuceneProvider.Analyzers.StandardAnalyzerWithStemming But it isn't perfect. It has trouble ...
4
votes
1answer
186 views

How to detect Search Results rendering DOM update

There is a way to attach to an event which will inform us when the search results have been loaded from the server. We can do it like this: XA.component.search.vent.on("results-loaded", function (...
3
votes
0answers
104 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 ...
1
vote
0answers
446 views

Items appear in SXA scope but not in search results

I'm using Sitecore 9, and SXA 1.7 I have a search scope that searches for certain items whose template is "blog page", in the scope query, I'm searching using the template and location, and I do get ...
4
votes
2answers
575 views

How are boosting values used for sorting when searching against multiple boosted fields

How are boosted fields handled in Sitecore ContentSearch when there are multiple indexed fields with different boosting values? Is there some formula to calculate the result ordering and is this ...
0
votes
1answer
252 views

SXA Search results Load more control

I am adding Search Results with Load More renderings. I need to display a number of items loaded with the total number of items returned from search API. Is there a way to get this info in SXA? I ...
3
votes
1answer
485 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 { ...
0
votes
1answer
113 views

SXA 1.6 CheckList filter Issue

We use 2 Checklist Filter to filter Search Result. The problem we faced is the second filter affect the first filter and that is required (by narrowing filter) but this doesn't happen when using the ...
1
vote
1answer
438 views

Sitecore Date type Solr indexing In UTC - How to perform solr search

I have a date field in the template. It's value is set to 4/8/2018. However, when I see the item's raw value, Sitecore converts it into UTC and stores it like 20180407T183000Z. The same value is ...
0
votes
1answer
221 views

Best way to configure search for multiple paths, templates?

We want to build a search interface that pulls results both from media library and different content paths, to include both pdf and standard content items. What is the best way to structure the ...
4
votes
1answer
271 views

Using .Between on a SearchResultItem field

I have requirements to create a search interface that allows the end user to perform faceted search against an index. One of the requirements is to be able to do a range query against certain fields (...
2
votes
1answer
696 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
1answer
323 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 ...
3
votes
2answers
263 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 ...
1
vote
2answers
618 views

Search for Items Content under the Data Folder

Is there a way to include the content in the Data folder in the search results? when I search for an item using the search box it doesn't show up and I get 0 results but when the search box query is ...
0
votes
1answer
44 views

Test Suggestion log error

Log showing message as “Error Occurred” when page displayed in edit mode. Un-commented the definition of Sitecore_suggested_test_index. The error is not showing up now. Is this index needs to be ...
1
vote
1answer
179 views

How can I modify SXA search component to search also in the Accordions content?

I'm trying to modify Sitecore default behaviour to search also in accordions content. I have checked Is Displayed in Search Results at /sitecore/templates/Feature/Experience Accelerator/Composites/...
3
votes
0answers
116 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 ...
1
vote
0answers
55 views

Multilist with Search exclude items named with wildcard [closed]

I am trying to use multilist with search to allow the editor to select any item except home and items named with * I am basically using * as described here Since this is not a real page I want to ...
4
votes
1answer
559 views

Predicate not filtering out same ID in Lucene query

I have a query that's supposed to return related articles to the current article that aren't the current article but are the same category. However, it keeps including the current article in the ...
9
votes
2answers
3k views

“Index sitecore_marketingdefinitions_master was not found” exception in Sitecore 9

Sometimes when we change config file or deploy new code, we see this exception on first load of page: Server Error in '/' Application. Index sitecore_marketingdefinitions_master was not found ...
1
vote
1answer
258 views

Site Search is not working with Solr Master slave configuration [closed]

We have set up the Master and Slave for Solr configuration. There is one master and two slave servers configured on different ports. Appropriate replication is configured. The load balance is in place ...
4
votes
1answer
185 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 ...
5
votes
0answers
154 views

Dynamic Date Comparison in Search filter

Using Sitecore 9.01 and SXA 1.6 , we are trying to create search scope that filter News item based on their dates , so each News item has start and End date and we need to display only not expired ...
1
vote
1answer
417 views

KeywordAnalyzer still splits based on whitespace

I'm creating a search where users can filter/facet based on terms that may contain a space (e.g Temporary work) on Sitecore 8.1 with Lucene. My first thought was to store the fields as untokenized; ...
1
vote
1answer
124 views

SXA Search Results Grouping

I am using Sitecore 9.0 with SXA 1.6 and Solr search provider. Is there a way to display results grouped in SXA Search results components?
1
vote
1answer
305 views

Content search in Sitecore pointing to custom index instead of Master

we have configured SOLR MASTER/SALVE in our environment on different servers and Configured the required replication. Index is rebuild and web site is search is working. when we try to search with in ...
0
votes
1answer
375 views

Run personalization rule programatically

I have built a custom peronsalization rule that sets a theme against a component. Each user can also choose a site theme which is stored against a contact. I then want to use this logic to build up ...
0
votes
1answer
556 views

Error while rebuilding the search index on Sitecore 8.2 and Solr 6.6.1

We are able to successfully build all the indexes for the first time except sitecore_master_index, sitecore_web_index and Sitecore_core_index And when trying to rebuild sitecore_master_index for the ...
1
vote
1answer
375 views

Error when adding computed index field: InvalidOperationException contextDatabase

I add a custom computed field to the fieldmap node in the Lucene Search config like so: <fieldNames hint="raw:AddFieldByFieldName"> <field fieldName="my_field" indexType="UNTOKENIZED" ...
0
votes
1answer
170 views

Clone SXA Search result

I am using SXA 1.6 Clone Feature to clone SXA Search result render to new one with custom .cshtml file so I can change the markup of the container instant of <ul> <li> to <div>tags ,...
1
vote
2answers
759 views

Failed to execute datasource query System.NullReferenceException while setting Datasource on Rendering

Has anyone seen this error before or know how to solve it? 996 16:35:46 WARN Failed to execute datasource query System.NullReferenceException: Object reference not set to an instance of an ...
5
votes
1answer
136 views

Setting Up Query Elevations

This is related to Solr QueryElevationComponent component usage, but I'm looking for information on getting elevation setup. I see some other questions involving Solr query elevation. Is there ...
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
731 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....
3
votes
1answer
172 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 ...
0
votes
1answer
310 views

Custom index not showing in the index manager popup

I have inherited a very old and messy instance of Sitecore 7. Ive decided to cleanup some of the config files and im starting with the indexes. There are a few custom indexes that i noticed don't ...
3
votes
1answer
411 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 ...
5
votes
1answer
462 views

What is the best way to store a single Sitecore field into two Solr index fields with different types?

I have a Category field in sitecore and it is currently stored as a text_general in Solr. It has this type because I need it to be tokenized and lowercase for searching. On the other hand I need to ...