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
0
votes
0answers
12 views

Extend Solr Content Search to search in the data sources fields - sitecore 9.3

I'm working on the site search module where the user searches for a particular item. Currently, the site searches and matches only the item name and it's fields But I'm trying for searching the ...
0
votes
1answer
21 views

Could not create instance of type: Sitecore.ContentSearch.SolrProvider.SolrSearchIndex. No matching constructor was found

I'm trying to set up a local instance of an existing Sitecore 9.2 site. It's using Solr 7.5.0, and I set it up through SIA. When I try to load my site I get the following error: Could not create ...
0
votes
1answer
16 views

How to get the __content index field value in solr search

I just created the site search module where I need to get all the pages that the user is looking for. I'm able to get the item name when content matches the search term, But also I need the content ...
0
votes
1answer
44 views

Solr field level search

I'm working on the site search module where the user searches for a particular item. Currently, the site searches and matches only the item name. But I'm trying for searching the keyword in item ...
0
votes
0answers
25 views

Return Partial view inside search results rendering variant

I'm using Sitecore 9.1.1 with SXA 1.8.1. I have a search results component, I need to render a partial view inside a section in its rendering variant. I tried to add a Variant component for a custom ...
0
votes
0answers
19 views

Searchbox populated text is changing with focus out of the search box with mode “show search results as prediction”

I'm using Sitecore 9.1.1 with SXA 1.8.1. I have a page on which I added a Sitecore search box and search results components. I set the search box mode to Show search results as prediction. The ...
1
vote
0answers
26 views

SXA Search Boosting Throws Error

I have configured the search scope for SXA (Sitecore 9.3) and it works as expected. However, when I try to add boost configuration to the search scope it throws the below error. Invalid Method Call ...
0
votes
0answers
30 views

Sitecore SXA Search Multiple Dropdown List

Im new in Sitecore, long story short. I wanted to know how to create a multiple dropdown search(filter) in Sitecore SXA (not coding part). Sorry my English is not good hopefully you guys understand ...
0
votes
0answers
28 views

On what basis, the language is switched for the searched items in Content tree search?

I am using Sitecore Content tree search. When we search any text using the content tree search, it shows the results. We are just searching by item name. No extra filters used. But when we click on ...
0
votes
1answer
27 views

Ways to compare search results in Sitecore 9.0.2

I performed search of a particular item type with the Sitecore in-bulit search in the content Editor as i wanted to see some items that are modified by a particular user. I filtered by the template ...
0
votes
1answer
34 views

Boost not activating in Sitecore Solr query

I've got some code that's generating a predicate for Solr search as follows: foreach (string query in querySplit) { contentPredicate = contentPredicate.Or(item => item.DocumentTitle.Matches(...
3
votes
2answers
60 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-...
1
vote
1answer
49 views

Coveo Search Word match

In my content, I have the following text water engine, Fire engine Features now available on the test model: 01ANB is the test string If I search for engin (not engine), it brings up this particular ...
0
votes
1answer
48 views

Can a TOKENIZED index field be remapped to an UNTOKENIZED field of a different name without using a computed? (LUCENE)

Having some search issues with using the "Name" field on items ("_name") I'd like to map it to another field that I can search on without having to create a custom computed field to do the mapping. ...
0
votes
1answer
55 views

Lucene search for item name that exactly matches returns a similar result, when none should match

We are getting the wrong result returned. for example, a search for the item named "alumni" returns the item "commencement-alumni-help" when no result should be returned. SearchContext....
0
votes
0answers
29 views

Adding new Crawler in Sitecore Index at Runtime

There is a scenario.There is a Site e.g SiteA. I have created an Index for SiteA and a Crawler which point to a node inside SiteA. Now In future, I add two new Sites SiteB and SiteC. I want the ...
0
votes
1answer
161 views

Sitecore solr list of double/float field

It`s weird but I did not find any fieldtype for storage list of doubles/floats both in Sitecore and in Solr (I need this field just for storing, not for querieng). Just need to store List< double>...
1
vote
1answer
56 views

Working with chinese language with the SXA Search Component

We have an issue, where we have content in multiple languages, and we are doing a basic keyword site search using the SXA Search Component. As far as I can tell (from the search.log), the SXA Search ...
2
votes
1answer
33 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 ...
2
votes
1answer
98 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 ...
0
votes
0answers
59 views

How to build scope query?

I have a scope query that retrieves all items that contain includedinsearch field with value searchable but I also need it to exclude an item when this item has EndDate or EventEnd field with values ...
1
vote
0answers
47 views

Sitecore SXA search doesnt work

I have recently installed a fresh Sitecore 8.2 update 5 including Power Shell 4.7.2 SXA 1.5 rev 171010 Sitecore SXA Showcase v1.2 Everything seems working fine except for the search function. When ...
1
vote
1answer
48 views

Search results count not updated when deleting items

I am using Sitecore 9.0.2. and SXA 1.8. I am facing a strange issue when I delete an item. The search results that returns this item is retrieved with the old count (including the deleted item) ...
5
votes
0answers
92 views

Atomic update of a SOLR document. Updating fields on document instead of full reindex of document

SOLR has a feature for doing partial updates of a document called Atomic Updates. The SOLR documentation has this example: { "id":"mydoc", "price":{"set":99}, "popularity":{"inc":20}, "...
0
votes
0answers
35 views

Manually add/update a single record in an index

I've created a custom index to store users in based on the code found at https://gist.github.com/jorgelusar/150a607dcf96acb54b60, but because there's no Sitecore item to trigger the usual indexing ...
0
votes
2answers
81 views

Enabling full text search on a single line text field

Locally I successfully enabled full text search on a field in the sitecore_web_index by implementing the following logic in my Sitecore solution: 1) Added this xml to a patch configuration file: &...
1
vote
1answer
66 views

Dropdown Filter - Language English Name

I am using SXA Search component and with that I want to use "Dropdown" filter which will have "Language" facets in the dropdown for the search items. I am able to achieve it by getting "_language" ...
1
vote
0answers
30 views

SXA search result returns Error 400

I am using Sitecore 9.0.2 and SXA 1.7.1. Search results return Error 400 with response "Exception has been thrown by the target of an invocation." while facets return results as expected. any idea ...
1
vote
0answers
37 views

Not able to Perform multi-language search Sitecore with searchstring

Using Solr as Default search provider. Content Search is working when website language is -en example.com/en/sxa/search/results/?l=en&q=query From localhost:8983(solr) Able to query the data ...
0
votes
1answer
39 views

Sitecore search for users

I've been doing some research on doing a search of the user base, using profile values for querying. I know there's a sitecore_core_index which in theory would cover that, but I'm guessing it's not ...
1
vote
0answers
42 views

Adding hashtag to the internal link that leads to blog search page with tag filter search Sitecore SXA 1.9

The blog index page has all articles are listed and the filter based on tag that works with solr search. The search results based on sxatags filter will get added on the blog index page when apply ...
1
vote
0answers
21 views

Specific search terms return 500

We are on Sitecore 9.0.1 and Solr version 6.6.2 and have previously had issues with populating our schemas from the Sitecore control panel. After overriding the pipeline like in this blog post (https:/...
1
vote
0answers
91 views

Blog posts with Tag Cloud filter does not work on the search results - Sitecore 9.2 and SXA 1.9

I have created the blog component based on the below link https://alan-null.github.io/2017/12/sxa-blog Somehow, the filter does not work using the SXA tags. What I have done: Created Blog Module ...
2
votes
0answers
49 views

How to implement nested condition in Sitecore search Query Token?

Refereeing this nice post https://ggullentops.blogspot.com/2019/01/extending-sxa-search-query-tokens.html Above approach works well with simple conditions which generate the below SOLR query e.g. ...
1
vote
1answer
89 views

IS there a simple way to get the current Azure Search index name programatically?

I need to get the current active index name for Sitecore search for logging purposes. Because of the swap on rebuild functionality, I can't simply use the name field of the index, since on alternating ...
0
votes
1answer
43 views

Why Solr returns 0 results when querying with stopwords only?

Really straightforward question: Why does Solr return 0 results when I query using only for, which is a stop word on my Solr setup? IMO this scenario should behave as a query without any keywords at ...
2
votes
1answer
197 views

How to apply stop words at Solr query time?

I'm having some fun with Solr and here is my current issue. I've applied some stop words using the stopwords.txt file and rebuilt my indexes. Everything looks fine here, I can see that those stop ...
0
votes
1answer
49 views

SXA search suggest throws error 500

I'm trying to implement the Sitecore SXA auto suggest search functionality, below is the setup <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> &...
2
votes
1answer
59 views

Clone SXA OOB component javascript

I am using Sitecore 9.1 and SXA 1.8, I need to clone "component-search-results-count.js" in base theme to extend some functionality to the OOB "Search Result Count" component. How can I do that?
0
votes
1answer
41 views

FuzzyLookupFactory is not working with Arabic words

I'm using Sitecore 9.1 and SXA 1.8, I'm using FuzzyLookupFactory for my suggester, and this is the configuration: <searchComponent name="suggest" class="solr.SuggestComponent"> <lst ...
2
votes
1answer
42 views

Filtering Content Editor global search in SOLR

When I use the global search in the Content Editor in my Sitecore 8.1 instance (that uses Lucene), the search.log displays the following output: ExecuteQueryAgainstLucene (sitecore_master_index): ...
0
votes
0answers
46 views

SXA Multiple facets field name is not working

I'm using Sitecore 9.1 and SXA 1.8, I'm using search facet for sorting, I want to sort by three fields, I wrote the names of the fields lower case and comma-separated at the Facet Field Name as ...
2
votes
3answers
190 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....
1
vote
1answer
98 views

SXA Search functionality works only with the whole search query

I'm using Sitecore 9.1 and SXA 1.8, I implemented search functionality using Search box and Search results OOB SXA components, When I search with a sentence, it only returns the exact match for the ...
2
votes
1answer
77 views

Issue with the Like operator on my custom field

My field configuration on Sitecore: <field fieldName="unifiedtitle" storageType="yes" indexType="tokenized" returnType="string">Project.Foundation.Indexing.ComputedFields....
1
vote
1answer
62 views

Solr ContentSearch returning too many results for a string comparison that should return just one

I have a very straightforward ContentSearch issue. My code is as follows: var filter = PredicateBuilder.True<PersonObject>(); filter = filter .And(i => i.Email == "my.email@address.com");...
0
votes
1answer
229 views

Custom index field not showing in Azure search

I am trying to use KamSars approach to indexing subcontent (pagecomponents) in my Sitecore 9.2.0 solution. It works fine in my Solr index locally, but when I try to add the two new computed index ...
2
votes
2answers
461 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 ...
2
votes
2answers
212 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
88 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 ...

1
2 3 4 5
8