Hot answers tagged

6 votes
Accepted

Solr index field are indexed with ItemFieldName_sm & not as ItemField_s

We faced this issue while upgrading as well, so we noticed that some configurations need to be changed like in above @Marek answer you can see droplink|droptree returnType is stringCollection instead ...
user avatar
3 votes

Sorting by date with Solr is returning an incorrect sort order

This is a long known issue with Solr, where if a field is stored / has analyzers / is tokenized, it returns incorrect results. This is vaguely mentioned on the documentation here. It was blogged about ...
user avatar
  • 4,805
3 votes
Accepted

Install Solr Search Service failed - Sitecore 10

The root cause of this issue is using just a space character in the Windows service and path prefix field in the Install Solr search service installation step in SIA: You probably inserted a space to ...
user avatar
3 votes
Accepted

Sitecore.ContentSearch.Linq is adding backslash to all space characters in search query

I was not able to find the direct cause of this issue but I have found a possible solution. When using the Like function with the slop parameter Like<T>(this T value, string phraseComparison, ...
user avatar
3 votes

DefaultMediaItemTextExtractor logs an error 'Cannot extract content from media item with id GUID'

I think that your Upgrade Script item is not PDF file. So, first you should figure out why it is recognized as a PDF. Default Sitecore media content extractor works in the following way: item should ...
user avatar
  • 3,001
2 votes
Accepted

Solr suspicious behavior

/solr/admin/info/system?wt=json is a well-known exploit that allows to get access to system information of a Solr instance. This is not a standard behaviour of Sitecore or Solr, so these requests must ...
user avatar
2 votes

Content Search API issue with Droplist and Treelist fields

What version of Sitecore are you on? I've got the same problem with Sitecore 10.1 with a droplist field. It converts the fieldname to <fieldname>_t when querying instead of <fieldname>_s, ...
user avatar
2 votes
Accepted

Content Search API issue with Droplist and Treelist fields

You don't need the suffix in the IndexField attribute here. The Sitecore Content Search API will (most of the time) add that in when it builds the search query. So it's probably doubling those up, you ...
user avatar
  • 18.9k
2 votes
Accepted

sitecore_web_index index is not getting updated upon publish on remote Solr servers

Since you mentioned in one of the comments that you're using Solr Cloud with 3 nodes, I just wanted to share the setup I've found working well for most scenarios: Use just the ...
user avatar
  • 599
2 votes

Creating a custom Solr core in docker using docker

The "containery" way to do this is to create your own solr-init image based off of the Sitecore one and copy in your own configset with the custom schema and create the core as part of the ...
user avatar
  • 1,206
2 votes
Accepted

How to search only curly braces i.e. { } in Solr search using Solr URL

As far as I can tell from your screenshot, your field type is text_general that uses StandardTokenizerFactory (like this): <fieldType name="text_general" class="solr.TextField"...
user avatar
  • 3,001
2 votes
Accepted

SOLR Search result order is different due to the query _val_:__boost function

I have raised a support ticket to the Sitecore for the above issue and they suggested me the two approaches: Sitecore Response: First of all, let me comment on the approaches you have already tried: ...
user avatar
2 votes

Sitecore 10 Solr Indexing only on processing server

If you look at your CM, you should see its role is set to "ContentManagement,Indexing". The Indexing role is the one that's handling the processing. You can read more about this ...
user avatar
  • 5,052
1 vote

$name is getting indexed

$name is just a token which will be replaced by item name, if you will create item first and then add $name in standard value later then in $name will be reflect into your item because of standard ...
user avatar
  • 1,788
1 vote

$name is getting indexed

$name is a token that replaces by item name when we create item in the content tree. But sometimes accidentally or because of some issue during item creation,it doesn't change to the item name and ...
user avatar
1 vote

Adding a computed field using the Schema API with SolrCloud

The Solr Schema API is recommended in Solr documentation, but it's not very easy to use. Since you are using docker, I'm assuming that you need to make these changes whenever your containers are ...
user avatar
1 vote

Select A Rendering Not Recognizing Allowed Controls From Placeholder after App Pool Recycle

We went ahead and created a new Placeholder item with the same placeholder key and the issue no longer exists.
user avatar
  • 21
1 vote
Accepted

Semantic Tag Based Sxa Search not showing result on solr search service

It looks like you are using two different indexes and expect the same results. Compare translated search queries and pay attention to _indexname field. This is unfortunate but queries in Build Search ...
user avatar
1 vote

How to write the query for grouping of articlecategories to fetch the count of article in Solr

If you only need to get a number of articles for each category, then the facets feature is the best way to achieve this. Facets will count matching documents for each category and return only keys and ...
user avatar
1 vote

How to apply a greater/less than DateTime query in Sitecore using the `IQueryable<ContentSearchResult>` Linq?

The solution to this is to use the following function overload: ContentSearchResult[ObjectIndexerKey key]. Example Query: queryable = queryable.Where(p => ((DateTime)p[(ObjectIndexerKey)"...
user avatar
1 vote
Accepted

Boosting items by its own field values

Unfortunately, this doesn't work in Sitecore 9.3: https://doc.sitecore.com/en/developers/93/platform-administration-and-architecture/search-result-boosting.html You can store the viewsCount in an ...
user avatar
1 vote

Creating a custom Solr core using solr-init container in docker

I was able to accomplish this setup with very little configuration in Sitecore 10.2 with Docker. The following example was from an SXA setup but you can adapt to meet your needs. Step 1 Create a new ...
user avatar
  • 16.5k
1 vote
Accepted

Solr QueryElevationComponent being ignored

I wound up using the approach recommended by @AnnaGevel and added a boosted keywords field. While I don't think this is quite as precise as the Query Elevation Component would be, it's maintainable by ...
user avatar
  • 11
1 vote

GetFacets / GetResults returns an empty facet list

You should be able to get facets with: queryResults.GetFacets() Additionally, FacetOn has a parameter called minimumResultCount that you can use for pulling only facets with at least 1 result. For ...
user avatar
1 vote
Accepted

Solr index field return types are different

You can set text in returnType like below, instead of changing in fieldType <fieldTypes hint="raw:AddFieldByFieldName"> <field fieldName="propertyaddressstate" ...
user avatar
  • 1,788
1 vote

Solr index field return types are different

You need to use return type as string collection for droplist filed type Populate Solr schema again in the control panel Rebuild the indexes
user avatar
1 vote

Sitecore indexing manager is empty without showing indexes

Issue: Indexes are not listed in Indexing Manager. Error log: 5844 11:31:27 WARN Error connecting to solr. Solr is not running on the provided url [Url:https://<solr server URL>:8983/solr/] ...
user avatar
  • 67
1 vote

Could not find add method: AddIndex (type: Sitecore.ContentSearch.ContentSearchConfiguration)

Just experienced same issue while upgrading from 8.2 to 10.1. We had a custom patch file adding extra field to sitecore_analytics_index. Something like: <index id="sitecore_analytics_index&...
user avatar
1 vote

Solr index field are indexed with ItemFieldName_sm & not as ItemField_s

You should check your SolrIndexConfiguration in /sitecore/admin/showconfig.aspx. There should be entries for every type of the field and their corresponding type in Solr: <...
user avatar
1 vote

No such core:xdb

Looks like the connection string for solr core xdb is wrong or the solr core xdb doesn't exist/is not configured correctly. Can you check if your connection string on xconnect looks like : <add ...
user avatar
  • 17.8k

Only top scored, non community-wiki answers of a minimum length are eligible