You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Romi <ro...@gmail.com> on 2011/06/30 12:47:51 UTC
How to optimize solr indexes
when i run solr/admin page i got this information, it shows optimize=true,
but i have not set optimize=true in configuration file than how it is
optimizing the indexes. and how can i set it to false then .
/Schema Information
Unique Key: UID_PK
Default Search Field: text
numDocs: 2881
maxDoc: 2881
numTerms: 41960
version: 1309429290159
optimized: true
current: true
hasDeletions: false
directory:
org.apache.lucene.store.SimpleFSDirectory:org.apache.lucene.store.SimpleFSDirectory@
C:\apache-solr-1.4.0\example\example-DIH\solr\db\data\index
lastModified: 2011-06-30T10:25:04.89Z/
-----
Thanks & Regards
Romi
--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3125293.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to optimize solr indexes
Posted by kenf_nc <ke...@realestate.com>.
I believe that is not a setting, it's not telling you that you have 'optimize
turned on' it's a state, your index is currently optimized. If you index a
new document or delete an existing document, and don't issue an optimize
command, then your index should be optimize=false.
--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3129078.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to optimize solr indexes
Posted by Romi <ro...@gmail.com>.
when i run as : deltaimport?command=delta-import&optimize=false
But i am still getting optimize=true when i look at admin console which is
in my original post
-----
Thanks & Regards
Romi
--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3128424.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to optimize solr indexes
Posted by Ahmet Arslan <io...@yahoo.com>.
--- On Thu, 6/30/11, Romi <ro...@gmail.com> wrote:
> From: Romi <ro...@gmail.com>
> Subject: Re: How to optimize solr indexes
> To: solr-user@lucene.apache.org
> Date: Thursday, June 30, 2011, 3:01 PM
> and if i want to set it as
> optimize=false then what i need to do ??
When calling import, use dataimport?command=delta-import&optimize=false
See other command available, like clean, commit, entity, etc.
http://wiki.apache.org/solr/DataImportHandler#Commands
Re: How to optimize solr indexes
Posted by Romi <ro...@gmail.com>.
and if i want to set it as optimize=false then what i need to do ??
-----
Thanks & Regards
Romi
--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-optimize-solr-indexes-tp3125293p3125474.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to optimize solr indexes
Posted by Ahmet Arslan <io...@yahoo.com>.
> when i run solr/admin page i got this
> information, it shows optimize=true,
> but i have not set optimize=true in configuration file than
> how it is
> optimizing the indexes. and how can i set it to false then
> .
>
>
> /Schema Information
>
> Unique Key: UID_PK
>
> Default Search Field: text
>
> numDocs: 2881
>
> maxDoc: 2881
>
> numTerms: 41960
>
> version: 1309429290159
>
> optimized: true
>
> current: true
>
> hasDeletions: false
>
> directory:
> org.apache.lucene.store.SimpleFSDirectory:org.apache.lucene.store.SimpleFSDirectory@
> C:\apache-solr-1.4.0\example\example-DIH\solr\db\data\index
>
> lastModified: 2011-06-30T10:25:04.89Z/
>
It seems that you are using DIH. By default both delta and full import issues an optimize at the end.