Solr Index Location

Author Message

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

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..

Thanks,
Bryan Ruiz

Bryan Ruiz

Tuesday 27 January 2009 1:33:33 pm

hmph. found it in /srv/solr/index

Thanks,
Bryan Ruiz

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

Nicolas Pastorino

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,

--
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

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...

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 19:44:01
Script start
Timing: Jan 30 2025 19:44:01
Module start 'layout'
Timing: Jan 30 2025 19:44:01
Module start 'content'
Timing: Jan 30 2025 19:44:03
Module end 'content'
Timing: Jan 30 2025 19:44:03
Script end

Main resources:

Total runtime1.0895 sec
Peak memory usage8,192.0000 KB
Database Queries78

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.1563151.2109
Module start 'layout' 0.00730.0073 739.3672220.6875
Module start 'content' 0.01461.0740 960.05474,588.8047
Module end 'content' 1.08860.0008 5,548.859419.8516
Script end 1.0894  5,568.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3234160.0002
Check MTime0.00140.1240160.0001
Mysql Total
Database connection0.00090.085510.0009
Mysqli_queries0.984390.3431780.0126
Looping result0.00070.0673760.0000
Template Total1.004092.220.5020
Template load0.00220.206320.0011
Template processing1.001891.951020.5009
Template load and register function0.00170.158810.0017
states
state_id_array0.00240.220010.0024
state_identifier_array0.00250.227820.0012
Override
Cache load0.00190.1770400.0000
Sytem overhead
Fetch class attribute can translate value0.00180.163540.0004
Fetch class attribute name0.00210.1896110.0002
XML
Image XML parsing0.00270.245340.0007
class_abstraction
Instantiating content class attribute0.00000.0021130.0000
General
dbfile0.00330.3001280.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs