You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ja...@nokia.com on 2010/07/22 13:55:32 UTC

Holding and changing index wide information

Hi,

When using incremental updating via Solr, we want to know, which update is in the current index. Each update has a number.
How can we store/change/retrieve this number with the index. We want to store it in the index to replicate it to any slaves as well.

So basically can I store/change/retrieve a number index wide in lucen/Solr?

Jan

Re: Holding and changing index wide information

Posted by findbestopensource <fi...@gmail.com>.
 Hi Jan,

I think, you require version number for each commit OR updates. Say
you added 10 docs then it is update 1, then modifed or added some more
then it is update 2.. If it is so then my advice would be to have
field named field-type, version-number and version-date-time as part
of the field in the index. You could set this field as like any other
field. Retrieve the record by filtering the value to the field
field-type.

Regards
Aditya
www.findbestopensource.com



On Thu, Jul 22, 2010 at 5:25 PM,  <ja...@nokia.com> wrote:
> Hi,
>
> When using incremental updating via Solr, we want to know, which update is in the current index. Each update has a number.
> How can we store/change/retrieve this number with the index. We want to store it in the index to replicate it to any slaves as well.
>
> So basically can I store/change/retrieve a number index wide in lucen/Solr?
>
> Jan
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Holding and changing index wide information

Posted by Ian Lea <ia...@gmail.com>.
Just add/update a dedicated document in the index.

k=updatenumber
v=whatever.

Retrieve it with a search for k:updatenumber, update with
iw.updateDocument(whatever).


--
Ian.


On Thu, Jul 22, 2010 at 12:55 PM,  <ja...@nokia.com> wrote:
> Hi,
>
> When using incremental updating via Solr, we want to know, which update is in the current index. Each update has a number.
> How can we store/change/retrieve this number with the index. We want to store it in the index to replicate it to any slaves as well.
>
> So basically can I store/change/retrieve a number index wide in lucen/Solr?
>
> Jan
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org