Forums / Extensions / eZ Find / Solr Index Location
Bryan Ruiz
Tuesday 27 January 2009 9:01:15 am
Hope there isnt a limit to how many questions you can ask! I am looking for the file location of the solr search index that is created when updatesearchindexsolr.php is ran and trasmitted to the solr server.
Thanks, Bryan Ruiz
Tuesday 27 January 2009 1:24:00 pm
I looked at extension/ezfind/java/solr/data and see nothing there, but i have indexed items..
Tuesday 27 January 2009 1:33:33 pm
hmph. found it in /srv/solr/index
Nicolas Pastorino
Friday 20 February 2009 1:52:41 am
Hi Bryan,
/srv/solr is the default location for Solr's search index. It is configured in ezfind/java/solr/conf/solrconfig.xml, as follows :
<config> <!-- snip --> <dataDir>${solr.data.dir:/srv/solr}</dataDir> ....
Changing this location on a running setup is to be handled with care, whilst doing it on a brand new setup is ok. The location of Solr's index is totally transparent to an eZFind's user though.
Ow, and by the way, eZFind 2.0 stable hit the road yesterday : * http://ez.no/company/news/ez_systems_releases_apache_solr_based_open_source_enterprise_search_solution_ez_find_2_0 * http://ez.no/doc/extensions/ez_find* http://ez.no/ezfind/download
Upgrade and enjoy !
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye
Andreas Kaiser
Monday 02 March 2009 5:34:38 am
Stupid question, do you think it's better to have the index location at /srv/solr or below the extension directory (like it was in ezfind 1.x)?
eZ Partner in Madrid (Spain) Web: http://www.atela.net/
Gaetano Giunta
Monday 02 March 2009 7:56:46 am
I personally prefer to keep all stuff that is 'writeable' by the server itself (be it the java-based solr server or the apache+php based eZP) slightly separate, ie. outside of the "extensions" dir.
It helps - if I want to make the whole ezp-install read-only, except for the /var dir, for extra security- if I want to keep the directories where data is stored on a separate volume / mount point to decrease the risk of filling up disks with data and or logs
Of course you can achieve similar results using symlinks...
Principal Consultant International Business Member of the Community Project Board
Tuesday 03 March 2009 12:28:45 am
Andreas,
As Gaetano mentionned, at least for migration purposes it is better to have the solr data directory separate from eZ Publish. This is the main reason why this is now the default in eZ Find.
Best Regards,
Tuesday 03 March 2009 7:23:22 am
Thanks Gaetano and Nicolas for the feedback.
Good to know the reason why default directory was changed from ezfind 1 to ezfind 2.
My question was related with the documentation in ezfind2 (in some doc files default directory is /srv/solr and in other the one inside extension directory...) and I was no sure which directory was the best option... of course all depends of each installation/environment...