Forums / Extensions / eZ Find / Solr Index Location

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/

eZ debug

Timing: Jan 18 2025 02:03:27
Script start
Timing: Jan 18 2025 02:03:27
Module start 'content'
Timing: Jan 18 2025 02:03:27
Module end 'content'
Timing: Jan 18 2025 02:03:28
Script end

Main resources:

Total runtime0.6817 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.7344180.7891
Module start 'content' 0.00600.5102 768.5234684.5078
Module end 'content' 0.51610.1655 1,453.0313340.4375
Script end 0.6816  1,793.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.6314210.0002
Check MTime0.00150.2249210.0001
Mysql Total
Database connection0.00110.158010.0011
Mysqli_queries0.589886.52462150.0027
Looping result0.00270.39092130.0000
Template Total0.648995.220.3244
Template load0.00230.338620.0012
Template processing0.646694.852920.3233
Template load and register function0.00020.022610.0002
states
state_id_array0.00080.113510.0008
state_identifier_array0.00180.268820.0009
Override
Cache load0.00190.2855400.0000
Sytem overhead
Fetch class attribute can translate value0.00180.267850.0004
Fetch class attribute name0.00180.2638110.0002
XML
Image XML parsing0.00220.323550.0004
class_abstraction
Instantiating content class attribute0.00000.0047130.0000
General
dbfile0.00420.6174390.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs