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
1
vote
1answer
10 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 ...
1
vote
2answers
57 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
vote
2answers
55 views

Search query custom path

I'm trying to build a search query to find an item that is a child of the current item. Something like this: custom:path|./_local/* But this returns 0 results (should be 3 results). How do I do ...
0
votes
1answer
26 views

Need to access search keyword in a custom rendering controller in SXA

We are using SXA 1.8 with Sitecore 9. And, we have the requirement to access the search keyword passed in the search-box in one of the custom-renderings. But unfortunately, SXA is appending the search ...
2
votes
1answer
56 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 ...
0
votes
0answers
28 views

sort the documents in solr based on the occurence of the searched words

I am building a search component in solr , and want to get the results on the basis of how relevant (most occured ) that word is in the particular field , i am filtering the results on a Content field ...
0
votes
1answer
45 views

Are advanced search operators supported on SxA search components?

Are advanced search operators supported by the SxA out of the box search components? If so, where can I find documentation on the syntax? AND, OR, Exclude and "exact match" is what I am looking for, ...
2
votes
2answers
42 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 ...
0
votes
1answer
31 views

Commerce Shared Taxonomy

We have a site built in Sitecore 9 with SXA. We would like to add Sitecore Commerce to this site. The current site makes use of Tags for searching. We would like to be able to tag commerce items with ...
1
vote
2answers
55 views

OrderBy not being respected for item field when using content search

Using Lucene, and content search I cannot sort items by their name nor custom title field. The items are imported from a read-only data provider and are successfully indexed (I've inspected it ...
2
votes
2answers
41 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 ...
0
votes
0answers
26 views

Error while resolving field boosting on CD server

I am getting the below error on my CD servers. I have never run into this error before and not sure what it is trying to say. I have populated index schema and re-indexes. CM is working fine and ...
1
vote
1answer
39 views

How to append new url hash parameters on search button click?

We are extending the Location Filter rendering with distance and services dropdowns. On the search button click we need to append the distance and services filtering values to url as hash parameters. ...
1
vote
1answer
58 views

How to search any component's field value by using SXA search component?

I am newbie in SXA, working on Sitecore 9.2 SXA 1.9 . Here in my case i am using Carousal in one of page where trying to search by Slide Text field value but no record is coming. I have added ...
1
vote
1answer
58 views

How to write a custom controller for Sitecore SXA Search Box component?

We are using Sitecore 9.0.2, SXA 1.8.1 and Azure search. The SXA component Search Box works perfectly fine. In our application, we need to show the search results from other application along with ...
5
votes
1answer
141 views

How do you perform a ContentSearch using the “MoreLikeThis” handler?

We have a Solr index and using the standard Linq queries. I noticed that Sitecore supports Solr features like Suggester or Highlighter, but I did not find anything about MoreLikeThis feature. I'm ...
1
vote
0answers
23 views

How can the Sitecore search API be extended to support Azure search traffic analytics?

I'm experimenting with adding support for conditionally returning SearchId for Azure search traffic analytics purposes (https://docs.microsoft.com/en-us/azure/search/search-traffic-analytics) as part ...
0
votes
1answer
27 views

Unable to AddFieldByFieldName elements for custom index

Using Sitecore 9.1 I'm trying to add some custom index fields and my config patch is throwing the below error when I add AddFieldByField name elements: [ConfigurationException: Unable to process '...
2
votes
1answer
37 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....
0
votes
0answers
30 views

SXA search events on microsoft EDGE not working properly

I'm using Sitecore 9.1 ans SXA 1.8, I made a script and used a SXA event as facet-data-filtered and results-loaded. On the EDGE browser the event was not working properly and when I changed the ...
2
votes
0answers
41 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 ...
0
votes
2answers
37 views

Is it possible to get page content dynamically (Not HTML but field values which are displayed on the page)?

Is it possible to get the few renderings' (present on the page) contents dynamically, but the catch is like I don't want HTML instead I want the field values which are used to be displayed on the page....
0
votes
1answer
45 views

Page Selector with search box not working properly

I'm using sitecore 9.1.1 and SXA 1.8.1. I have a page on which i added the following components: 1- search result 2- search box with suggestion mode "show search result as prediction" 3- Date Filter ...
0
votes
1answer
53 views

Resolve PostFailedForSomeDocumentsException exception during indexing

During (manually triggered) indexing of the master database, I get the following exception (stack trace below). Using Sitecore 8.2u7 with SXA 1.7. 27608 10:43:03 ERROR [Index=sitecore_master_index] ...
0
votes
0answers
36 views

Autosuggestion not working in SXA 1.8.1

I'm using sitecore 9.1.1 and SXA 1.8.1. i'm trying to use the OOTB Autosuggest but i always get the below error. { "Message": "An error has occurred.", "ExceptionMessage": "Object reference not ...
2
votes
1answer
44 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.
3
votes
1answer
71 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
4
votes
2answers
117 views

Is the entire Sitecore tree indexed during indexing, or just the content node

As per the title, during indexing, does Sitecore index the whole of the content tree (content, layout, media library, social, system, templates)? Is the section of the tree which is indexable ...
1
vote
1answer
49 views

Limit search result hits to a specific number with facets to match limited result set

I have a requirement to limit search results to an arbitrary number in a Site Search implementation. Is there a way to accomplish this in a query and get accurate facets relative to the arbitrary ...
2
votes
1answer
52 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 <...
0
votes
0answers
44 views

SXA autosuggest results sorting

I'm using Sitecore 9.1 and SXA 1.8, this the configuration of the SXA suggester : <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name"&...
0
votes
2answers
54 views

Techniques and Rules to Eliminating Template fields from Indexing

I am investigating my site's indexing and looking at working around the Azure Search index 1000 field limit (see here Rebuilding Sitecore Core Index on Azure search throwing exceeding index limitation ...
2
votes
2answers
116 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 ...
0
votes
1answer
53 views

How to escape “media library” in Linq to Sitecore

I'm trying to write a query that searches only items in the media library. The problem appears to be related to the space character in the phrase "media library", which is causing the code to return ...
0
votes
1answer
66 views

Refreshing custom index without rebuild

I know that I can configure my custom crawler (FlatDataCrawler) with manual strategy, and then I can start Rebuilding manually. But how can I configure my crawler to start Refreshing every specific ...
2
votes
2answers
81 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> ...
1
vote
2answers
249 views

Sitecore upgrade to 9.1 not indexing solr fields

I have upgraded my Sitecore instance from Sitecore.NET 8.2 (rev. 161221) to Sitecore 9.1 update-1. while running migration I ran into the issue where I had <indexAllFields> in the following ...
0
votes
1answer
58 views

Where should I put SOLR Autosuggest configurations

I'm using Sitecore 9.1 and SXA 1.8, there are two cores for the master index now , instance_name_sxa_master_index and instance_name_master_index, which index should I put the SXA autosuggester ...
0
votes
1answer
114 views

How to get Current Item ID in search scope

In Page I used search result to display items from Template, and this template contains "drop link field" I need to filter these results like that I need to use "Current Item ID" in search scope to ...
0
votes
1answer
124 views

SXA Tags are not searchable

I'm using Sitecore 9 and SXA 1.7, I want when the user enters a SXA tag name, all the items tagged by this tag are returned at the search results. I tried it but no results are returned, I checked ...
4
votes
1answer
47 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, ...
1
vote
1answer
33 views

Can I use Content Search with Glass to query children of a specific template?

My Sitecore Item has children of different Templates. To query them, I use the following field declaration: [SitecoreQuery("*[@@templateid = '{ID of my Template}']", InferType = true, IsRelative = ...
1
vote
2answers
66 views

SXA get data based on current year

I work on sxa Project where I have news Template, I trying to display all news items where the (News_Creation_date)field value in current year, I created search Scope to retrieve data and Rendering ...
0
votes
0answers
55 views

SXA Boosting Rules not working

I'm using SXA 1.7 and Sitecore 9, I made a SXA boosting rule to a search scope and it works well on CM(Master Database), I publish the scope and I checked that it's published, but it's not reflecting ...
0
votes
1answer
55 views

Azure search random behavior running for Sitecore 9.0.2

I am having issue with the Azure Search where I am not getting results from the search index (it is random issue). I’ve verified the configurations of Azure search and computed index fields. Below is ...
0
votes
1answer
49 views

Index stops updating after a search query

I'm using Sitecore 9.0.2 with Azure Search and Solr. I have the weirdest search issue I've seen in a while. Take the following steps: Restart the application (iisreset or similar) Rebuild the search ...
2
votes
2answers
136 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: ...
4
votes
1answer
81 views

Azure Search duplicate results for multilingual countries in same site with different language versions

We have a multi-lingual site where the group of countries (say for example Asia Region) is hosted in one Site folder. Thus Home, Pages, Settings have different language versions (zh-HK, en-HK, en-AU)...
-1
votes
1answer
86 views

date field in solr not indexing proper date from sitecore

i am changing search from lucene to solr and faced an issue in this , i have DateTime a field in sitecore and an item is using that field and have value of now ( DATE -- 4/4/2019 TIME -- 12:00 AM) ...
0
votes
0answers
56 views

When searching with solr sitecore does not search in the right fields

We know that sitecore uses solr dynamic fields so that we don't need to declare all the fields that we have in sitecore separately in the solr schema to get them indexed. In our case we have a ...