Hot answers tagged

47 votes
Accepted

How to get Solr to run as a service?

One option is to use NSSM - the Non-Sucking Service Manager. It basically has the ability to install any .exe as a service in Windows. Download it and put it anywhere in your system PATH. Then open ...
user avatar
  • 24.3k
23 votes
Accepted

Unable to start Solr service on Windows 10 / Windows Server 2016 x64

It was because the port was already used by another solr service installed via Bitnami. Update: Tried to run solr.cmd start in C:\solr\bin foolder. Appeared that JAVA_HOME environment variable was ...
user avatar
22 votes
Accepted

Install-SitecoreConfiguration xconnect-solr.json - Error Invoke-ManageSolrCoreTask : Missing required parameter: name

Maybe you are facing a problem with the SitecoreInstallationFramework version? Sitecore 9.0.X requires 1.2.1: Install-Module -Name SitecoreInstallFramework -RequiredVersion 1.2.1 Sitecore.9.1.0 ...
user avatar
  • 354
20 votes
Accepted

Sitecore Content deliveries and Solr with High availability

We are using Zookeeper with Sitecore 8.1 Update 2, and as per the documentation here: https://zookeeper.apache.org/doc/r3.1.2/zookeeperAdmin.html we are using 3 instances. This is the minimum required....
user avatar
16 votes
Accepted

Configuring SSL for Solr

Yes, this is normal Chrome behaviour. It recognises your certificate and does SSL, but it warns you that whoever issued the certificate is unknown (to Chrome) and therefore not trusted. Trusted ...
user avatar
  • 24.3k
14 votes

How to switch Lucene to Solr

As others have said here there are a number of steps to do this: Install Solr Generate an XML Schema for Solr Enable Solr term support Verify that Solr is running correctly Create Solr cores ...
user avatar
14 votes
Accepted

Gracefully handle Solr search connectivity issues

There is. Sitecore has open sourced a patch to fix this. The code is on github, you'll need to download it and build the patch against your version of Sitecore. You may need to adjust the code to work ...
user avatar
  • 1,458
14 votes

Sitecore Full Content Search

From what I understand, you are looking for a way to get the datasources that your current page is referring to to be indexed along with said page. Several times now we have used the approach defined ...
user avatar
  • 1,651
13 votes
Accepted

Sitecore Azure Search vs. Solr Provider

Does azure search uses Lucene as search engine? Azure Search is Microsoft's response to providing a cloud based indexer. It uses Elastic Search as the underlying driver, but the Elastic Search engine ...
user avatar
  • 14.3k
13 votes
Accepted

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

After spending some time in Sitecore logs and googling I decided to check Solr logs. In my case they are stored in C:\solr\solr-5.4.1\server\logs\ That was smart move. I immediately found a clue: ...
user avatar
13 votes
Accepted

If I unpublish an item will Sitecore update the search index?

I did some research and for simple scenario unpublished content is deleted from the index. In my case, it was Lucene, but that shouldn't be really matter because all relevant code is stored in ...
user avatar
13 votes

Install-SitecoreConfiguration xconnect-solr.json - Error Invoke-ManageSolrCoreTask : Missing required parameter: name

Modify xconnect-solr.json and sitecore-solr.json Find the CreateCores task in each file Change the Name attribute in Params > Action to lowercase name Original Script { "Action": "Create", "...
user avatar
12 votes
Accepted

Adding a field to a custom SOLR index configuration

I think you may be missing type matches within your field map. Try adding this section before your <fieldNames> section <typeMatches hint="raw:AddTypeMatch"> <typeMatch typeName="...
user avatar
12 votes
Accepted

Incorrect dynamic field type for Droptree

Just ran into the same issue with a Droplink. This definitely seems like a bug. My guess is that the indexing type is actually being set based on the return type of field reader associated with the ...
user avatar
11 votes

How to get Solr to run as a service?

You might consider using the Bitnami Solr Stack. It's basically an "opinionated" stack if you will, and will help ensure that you retain the same structure and setup regardless of whether you're local ...
user avatar
11 votes
Accepted

Error when rebuilding a Solr index: unknown field '__display_name_t_cs'

Sitecore stores language-specific text fields in Solr by adding a suffix that corresponds to the locale name. The field for the cs-cz locale is missing in the index schema, so you'll need to add it. ...
user avatar
11 votes
Accepted

Installation Error - Cannot validate argument on parameter 'Source'

Just observed that in Solr 7.1.0 the folder structure is quite different than 6.6.2. Hence the power shell script is unable to find the required folders. In my case the script is looking for ...
user avatar
  • 2,534
11 votes
Accepted

How to increase Solr JVM memory

The default size that is set is 512MB, but can be changed by adjusting the solr settings. You can increase the memory by doing the following: Open the {INSTALLDIR}\bin\solr\solr.in.cmd file in a text ...
user avatar
10 votes
Accepted

Different indexes between SOLR and Lucene?

To answer your question, there are no differences in indexes between SOLR and Lucene (with the exception of the swap cores for SOLR, see Bonus Answer). What you are seeing is probably a product of too ...
user avatar
  • 14.3k
10 votes
Accepted

Why is Sitecore not sending a correctly formed query to Solr?

Making wildcard queries work I had exactly the same issue with a custom Lucene query. The fix was to use .MatchWildcard() instead of .Contains(). In your case, to prevent escaping in both instances, ...
user avatar
10 votes

Unable to start Solr service on Windows 10 / Windows Server 2016 x64

I faced the same problem. The solr starts when we execute solr start -p 8983 on the command prompt of solr bin folder. But when we try to start the same from services, then it gives the above error. ...
user avatar
10 votes

Sorting Solr items query by Sortorder field

I did this before on Lucene by removing the __sortorder field from the excluded fields list. And rebuild the index. I would assume this to work in Solr as well. Your config patch would look like this: ...
user avatar
  • 19.1k
10 votes

Boost Solr query and prioritize exact match

Something like this has worked for me. Beyond the boosting, the important part is to have the exact match Or the loose match. exactPredicate.Or(loosePredicate); That will build the proper SOLR query. ...
user avatar
  • 12.9k
10 votes
Accepted

Solr tokenization to split on semicolon character

You can use solr.PatternTokenizerFactory tokenizer to achieve this Define a new fieldtype in solr schema <fieldType name="semicolonDelimited" class="solr.TextField"> <...
user avatar
9 votes
Accepted

How much memory does the JVM for Solr need?

There is no one good answer for your question. I remember we had similar issue few years ago and at that time the answer from one of the Sitecore Solr experts was to start with defaults and observe. ...
user avatar
9 votes

Sitecore.ContentSearch.SolrProvider.SwitchOnRebuildSolrSearchIndex. No matching constructor was found

I had exactly the same issue as you and for me it was a really small change to the patching that fixed it: Instead of: <index id="sitecore_core_index" type="Sitecore.ContentSearch.SolrProvider....
user avatar
  • 18.8k
9 votes
Accepted

How to specify Solr core in search code for Sitecore 8.1

The indexes are defined in configuration, and the core for that index is specified in that configuration section. Here's the default 'sitecore_core_index' definition in an OOTB sitecore install (...
user avatar
9 votes
Accepted

How do I run MongoDB and SOLR Docker images that work with Windows Server 2016?

You mentioned in comments that you're getting an error—this is because there is no tag in my docker hub repository. I wouldn't know which version of Sitecore latest should be build against: 8.2 or 8.1 ...
user avatar
9 votes

Solr query length limit

I don't know if the problem is relevant yet, but it's actually possible to switch Sitecore to using POST queries instead of GET when communicating to Solr. You need to decompile the IOC integration ...
user avatar
  • 246
9 votes

Configuring SSL for Solr

Here's a script that will fully automate the generation of the JKS keystore for Solr as well: https://gist.github.com/kamsar/c3c8322c1ec40eac64c7dd546e5124de # Usage: # This script is designed to ...
user avatar
  • 4,063

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