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
8
votes
1answer
1k views

In the ContentSearch Linq API what is the difference between the different string matching methods?

The Sitecore ContentSearch Linq API provides several methods that can be used to search against string fields in different ways: Like Matches MatchWildcard Contains StartsWith/EndsWith From the doc ...
0
votes
1answer
1k views

How to randomize search results

I am using Sitecore.ContentSearch library (lucene index). How can I randomize search results before getting results? I have more than 10000 items so I do not want to upload all results to memory and ...
10
votes
2answers
1k views

Gracefully handle Solr search connectivity issues

We had an issue recently where the Solr search servers went down and it took the site down too. Is there a way to handle this gracefully and keep the site up but just return an error message when the ...
1
vote
1answer
221 views

How to avoid double quotes for is equal to when using segment builder

I'm creating a condition for the segment builder inheriting from TypedQueryableStringOperatorCondition. I'm overriding the method GetResultPredicate to apply my filter like this return base....
4
votes
1answer
311 views

Field not showing up in coveo range facet dropdown

I've defined a new facet Price in /sitecore/system/Settings/Buckets/Facets but it does not show up in the Field dropdown when I try to add a Coveo Range Facet View. I can only see 2 fields in the ...
2
votes
0answers
672 views

Content Search Functionality Not Working [closed]

I am working on a search functionality to return items with certain template, location of the folder to look for in, and has the item name: var predicate = PredicateBuilder.True<SearchResultItem&...
1
vote
1answer
120 views

How to set a item field as ParameterExpression in Coveo

When I try to create a custom rule and pass field name, I get Instance property 'textField' is not defined for type 'Sitecore.ContentSearch.SearchTypes.SearchResultItem' exception. This is how my ...
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:...
1
vote
1answer
991 views

Why does my Solr index only contain English language versions? Sitecore 8u4

Any idea why my master and web index only have the "en" language versions of items in my 4 language site? Where are languages for the crawler configured?
5
votes
1answer
421 views

How to use both Lucene & Solr with Brightcove?

In our project, we are using Brightcove videos, currently brightcove media framework supports only Lucene. But we need to use Solr for the site search, and other functionalities. How do we enable ...
5
votes
1answer
1k views

Search component in SXA

I was playing around with the ootb search components in SXA and I got some results so yes, it's working. But now I wanted to know what was all included in the searchable content (apparently computed ...
7
votes
2answers
2k views

How to implement 'Did you mean?' - spell checker functionality like google in Sitecore using Lucene/Solr?

I have a requirement to implement google-like 'Did you mean?' functionalities. If user make a mistake in typing then I've to show 'Did you mean [correct search term]'. What is the best way in ...
8
votes
1answer
297 views

Crawling external data in Coveo

I have a DAM system that houses thousands of PDFs, and I am using Coveo for my site search. I want to allow these PDFs to be searchable from my site- how can I get them into an index? The only ...
4
votes
1answer
471 views

Can I use automatic dependency injection with computed search fields in Sitecore 8.1?

I am creating a custom computed content search field that has one dependency: ISearchSettings. I'd like it to be injected via constructor: public class CustomField : AbstractComputedIndexField { ...
6
votes
3answers
1k views

Is there a “weighting” involved with Sitecore.ContentSearch.SearchTypes.SearchResultItem?

I have the following code to return a List of Items in a Lucene index: public List<Item> GetSearchResults(ISearchIndex index, string searchTerm = "") { var results = new List<Item>(); ...
5
votes
1answer
4k views

Help with ContentSearch LINQ query syntax

Here is my scenario: Bucket of sitecore items of a specific template This template has a field tags(which is a treelist) where you can associate x items there. I'm building a query using lucene to ...
4
votes
1answer
1k views

PredicateBuilder not adding any filters at all

I am trying to put together a very simple predicate builder - I only have one predicate for now. But as far as I see in the logs, it isn't applying any clauses at all. This is what I have: using (var ...
6
votes
1answer
2k views

Unable to serialize the session state. Sitecore.ContentSearch.SearchTypes.SearchResultItem

Introduction After implementing private and shared outProc sessions states, I'm receiving the following error. This is a Sitecore 8.1 Update 3 environment. We are using SOLR as our indexer. We are ...
8
votes
1answer
2k views

How to properly search Solr for any match on one stringCollection field and no matches on a second stringCollection field?

I have a Sitecore v8.1 site using Solr 4.10. Here is my index setup. First I have two custom fields defined in my index defined as follows: <field fieldName="read_roles" returnType="...
3
votes
3answers
14k 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 ...
4
votes
1answer
863 views

How to query Solr and only return content items that the current user has permissions to view?

I am building a Sitecore 8.1 / Solr 4.10 site. I want to be able to do a general site content query through the web database and only return content items that the current user has permissions to view....
3
votes
2answers
358 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 ...
8
votes
1answer
670 views

In the “Select Media” dialog, where are the search facets defined at in Sitecore?

This is for Sitecore 8.1 Update 3. In the Select Media dialog that pops up on certain media fields (for example, clicking Browse on an image field), I want to know where the search facets are ...
5
votes
1answer
215 views

Can I set up Sitecore ContentSearch to use a separate Search- and Requesthandler on SOLR per site?

As the question says; do I have any options of setting/defining my own Search- and Request-Handlers for Sitecore ContentSearch, based on the active site? Skimming through ContentSearch configs, I'm ...
7
votes
1answer
681 views

How can I customize Search Result in SXA?

Out of the box SXA Search Results component shows only page Title. How can I customize that component to show page Image and Description?
3
votes
1answer
208 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 ...
6
votes
2answers
495 views

How to specify Solr core in search code for Sitecore 8.1

I recently upgraded from Sitecore v7.5 to v8.1. In addition my Solr configuration changed a little. On v7.5 I only had a single core. On v8.1 I now have many cores. After upgrading my search code ...
7
votes
4answers
8k views

Unable to connect to [http://localhost:8983/solr], Core: [mycore]

I am creating Solr Sitecore search index. After index was added to Solr and Sitecore configuration was updated to connect to it, I suddenly got yellow screen of death: Connection error to search ...
8
votes
2answers
932 views

How do I add a new search filter to use with my Item Buckets?

I want to add a search filter which can be used for building search queries in Sitecore as per described in the documentation. The search filter should filter by inherited templates. I have followed ...
6
votes
1answer
1k views

“Multilist with Search” Field Does Not Return Search Results With Two Or More Items Selected

This is for Sitecore 8.1 Update 3, using Solr 5.5. It appears that in a Multilist with Search Field, if the field has two or more items currently selected (it does not matter whether the item has ...
10
votes
1answer
677 views

Display Facets With 0 Values

I'm working on a Lucene-based search page on Sitecore 8.1. I'd like to be able to display all facets and all facet values, even when there are 0 aggregate results for it. Currently, what I get back ...
17
votes
3answers
2k views

Items with fallback language missing in Content Search index

On our Sitecore 8.1 Update-2 site we have configured two languages: English German (which should fallback to English) So we have configured language fallback and it works as it should. We have also ...
13
votes
4answers
2k views

What is the difference between an index and a search index

What is the difference between a regular index (e.g. sitecore_master_index) and a "search index"? Why do I see certain indexes under the Indexing Manager in Control Panel, yet different ones under ...
14
votes
4answers
7k views

Sitecore index update jobs getting stuck

I'm having trouble configuring a Sitecore 7.2 production environment and noticed some weird things on the CM environment.. After a few updates to the sitecore_master_index the jobs to update the ...
2
votes
0answers
71 views

When will the sitecore azure search provider be released? [closed]

I saw there was a Roadmap from earlier this year saying Azure Search Provider would be included in 8.2 update 1 to be released this year. Along with Azure session redis cache. Has anyone got any ...
8
votes
1answer
1k views

How does Sitecore update the Link Database?

I installed the Sitecore URL Rewrite Module for a client. The module worked properly in non-production environments. However, it did not work on production CD servers. The module uses the links ...
0
votes
2answers
200 views

How can I use a 3rd party search appliance to build my searches?

I'd like to use Algolia (a cloud-based search provider) for building my search indexes instead of using SOLR. Is that possible? How could I get started?
5
votes
2answers
795 views

Lucene _language field TOKENIZED - how do I search on language?

In our Sitecore site we have a few 'English' languages: en en-GB en-US We wanted to do a search using the Lucene index (a custom one, but that doesn't actually matter) and included the language in ...
12
votes
1answer
1k views

Do we have predictive search capability within Sitecore?

I'm looking for predictive search for content page in Sitecore. Something similar, what google search provide. Do we have anything like this?

1
5 6 7 8
9