The wiki page explains how to setup scheduling in older version of Solr but it hasn't been updated for Solr 5.1.0. The problem is I can't configure the dataimport.properties file.
The instructions in the wiki:
regardless of whether you have single or multiple-core Solr, use
dataimport.properties located in your solr.home/conf (NOT solr.home/core/conf)
In Solr 5.1 there is no dataimport.properties located in solr.home/conf, and it doesn't work if I use the one in the core.
Is there any way I can get this to work?
I have similar problem in my application.I have setup separate application to schedule delta/full-import.Wiki page you mentioned is not committed to Solr code base.
Hope this helps.
Related
I want to integrate my Solr data core with carrot2, to get a nice clustered visualization. However, I am having difficulties with getting carrot2 running in the first place as the documentation I have come across is rather vague. What is needed exactly? In other words, how do I get started?
I have downloaded the latest release of carrot2 from https://github.com/carrot2/carrot2/releases
I cannot understand how to get it running with the solr core that I have already created. What is the next step? Are there any instructions on how to do this exactly?
Carrot2 Workbench was not available in the 4.0.x release, but a browser-based Workbench will be part of the upcoming 4.1.0 release.
The 4.1.0 is not yet officially available, but you can use snapshot binaries for the time being.
To cluster Solr data using the snapshot release Workbench:
Download Carrot2 4.1.0 snapshot binaries, unzip in a local folder.
Go to the dcs directory, run the dcs.cmd or dcs.sh depending on your operating system.
Open http://localhost:8080/frontend/#/workbench in a modern browser.
Choose Solr in the Data source combo box, fill in Solr service URL.
If everything worked correctly, Workbench should be able to load the list of cores in your Solr install. Choose the core, choose the fields to cluster, type your query and press Cluster.
Is it necessary to use tomcat for configuring Solr with asp.net.
by this link [link]https://www.codeproject.com/Tips/480091/Using-Solr-for-Search-with-NET-Csharp
i configured and it works!! but it uses solr 1.4 version and i want to update my solr version.
And [link]https://cwiki.apache.org/confluence/display/solr/Running+Solr+on+Tomcat
it says that you cannot configure the tomcat with version 5 or latest from it.
so how to configure asp.net with solr latest version ?
Latest Solr runs as standalone black box. Do not look at ancient tutorials for Tomcat information, they are not useful anymore. And it is a separate issue from connecting to it via .NET client.
For the client part, the source-code version of SolrNet is more up to date. And it should work with latest Solr, with the main issue being that the URL for Solr now must include collection name, so http://localhost:8983/solr/collectionname . Check for parameters to set core or collection or similar.
There is also Solr Express you may want to have a look at.
As you may already know that Sitecore, configured to work with SolrCloud, does not support index switch on rebuild. Is there a way to achieve this with version 4.10.3 of Solr and Sitecore 8.0?
We found a link - https://github.com/SitecoreSupport/Sitecore.Support.449298 - but this has only been tested from version 5.2.1 to 5.5.1. Does anyone have any experience implementing this for version 4.10.3? Any issues that we may need to be aware of?
Thanks
This patch was created as the old SwitchOnRebuild used the Solr Core switching API which is now deprecated in version 5.* and above. It was not recommended when running in SolrCloud mode due to an issue with Zookeeper.
This code uses the Solr 'collections' API (/solr/admin/collections?action=LIST) instead , you would need to check if this API is available for Solr 4.10 (I think it is but I'm not 100% sure)
You would then just need to ignore the parts about the schemaFactory as that is Solr 5.* specific.
Note that this patch relies on the 405677 patch to be applied too.
I have Solr 4.10 and I have collection on it with solorconfig.xml has the value for <luceneMatchVersion> as follows:
<luceneMatchVersion>4.7</luceneMatchVersion>
Is this correct? I saw other examples that has values such as LUCENE_35 What I need to know also, how could I express LUCENE_xx from my current Solr version?
You should use:
<luceneMatchVersion>4.10.4</luceneMatchVersion>
I recommend you to check your current solr version, in my case was 4.10.4.
if you are going to reindex, then both numbers should match. The only reason you might want to have them different, is if you had and index created with say Lucene 4.7, then you would have
<luceneMatchVersion>4.7</luceneMatchVersion>
Then, you upgrade lucene to 4.10.
Now, if among the changes in between 4.7 and 4.10 there are things that work differently regarding analysis (you get the same sentence analysed in both versions and get different output as a result), then, you might want to keep the version number at 4.7, otherwise some queries that contain affected terms might not work (as they were analysed at index time in a different way than at query time). You have to asses how critical that issue might be.
That is why the recommendation is to upgrade, change the setting to the current number, and reindex. This way you are sure to avoid any issue.
If anyone is using Drupal, the Search API Solr (search_api_solr) module has config templates by version in /sites/all/modules/search_api_solr/solr-conf/.
The template README.md states the following:
The solr-conf-templates directory contains config-set templates for
different Solr versions.
These are templates and are not to be used as config-sets!
To get a functional config-set you need to generate it via the Drupal
admin UI or with drush solr-gsc. See README.md in the module
directory for details.
The module's README.md lists these instructions:
Make sure you have Apache Solr started and accessible (i.e. via port 8983). You can start it without having a core configured at
this stage.
Visit Drupal configuration (/admin/config/search/search-api) and create a new Search API Server according to the search_api
documentation using "Solr" as Backend and the connector that
matches your setup. Input the correct core name (which you will
create at step 4, below).
Download the config.zip from the server's details page or by using drush solr-gsc with proper options, for example for a server named
"my_solr_server": drush solr-gsc my_solr_server config.zip 8.4.
Copy the config.zip to the Solr server and extract.
I generated a config file for 8.x, and it uses this:
<luceneMatchVersion>${solr.luceneMatchVersion:LUCENE_80}</luceneMatchVersion>
I am trying to implement solr into sitecore but could not find any way for creating a Solr instance for the same. I have few PDFs from SDN I could find any way to create Solr instance in any. Considering that I am new to CMS I hope I could get some help here. Thank you
There are lots of resources available for setting up Solr, and integrating Sitecore.
Essentially Sitecore is ignorant with respects to how you setup Solr (barring a few exceptions), so you need to follow standard methods to set Solr up. If you are doing this on your local machine, then I recommend you simply download Solr and get it running through the provided Jetty App Server.
Once Solr is running, download the Solr Extensions from SDN, then follow the search scaling guide to integrate Solr. This really only boils down to the following;
Remove Lucene config files
Add Solr config files and binaries
Add Solr endpoint into relevant config
Generate Solr Schema via Sitecore -> Control Panel -> Search (within Sitecore)
Add Schema file to Solr Core configuration
et voila
There is a great guide here: http://www.dansolovay.com/2013/05/setting-up-solr-with-sitecore-7.html