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 grainne wallace <gr...@anaeko.com> on 2012/08/20 11:49:22 UTC
query
Hi there,
I currently have a lucene index based on version 3.5 made up of xml
documents.
I'd like to create smaller indexes from the main index ;
1) an index based on a date range from the last week
2) an index based on the last month
3) an index based on the last 3 months.
The reason I would like to do this is because I am using semantic
vectors code to create a semantic space based on time slices,
semantic vectors has no programmatic way to do this,
Can you advise,
Regards
Grainne
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: query
Posted by Ian Lea <ia...@gmail.com>.
No. See the FAQ.
http://wiki.apache.org/lucene-java/LuceneFAQ#How_do_I_update_a_document_or_a_set_of_documents_that_are_already_indexed.3F
There are a couple of ideas floating around e.g.
http://www.flax.co.uk/blog/2012/06/22/updating-individual-fields-in-lucene-with-a-redis-backed-codec/
or https://issues.apache.org/jira/browse/LUCENE-3837 but to the best
of my knowledge neither are ready for general use.
--
Ian.
On Mon, Aug 20, 2012 at 3:59 PM, grainne wallace
<gr...@anaeko.com> wrote:
>
> Hi there,
>
> Is it possible to update a document in the lucene index with an additional
> field?
> I have a massive index and would like to add a numeric field with a date in
> number format into each document.
> This is to perform searches with NumericRangeFilters using the dates as
> numbers when searching.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: query
Posted by grainne wallace <gr...@anaeko.com>.
Hi there,
Is it possible to update a document in the lucene index with an
additional field?
I have a massive index and would like to add a numeric field with a date
in number format into each document.
This is to perform searches with NumericRangeFilters using the dates as
numbers when searching.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: query
Posted by Ian Lea <ia...@gmail.com>.
org.apache.lucene.index.PKIndexSplitter in contrib-misc sounds promising.
www.slideshare.net/abial/eurocon2010 "Munching & crunching - Lucene
index post-processing" sounds well worth a look too.
Or just build new indexes from scratch routing docs to the correct
index however you choose.
--
Ian.
On Mon, Aug 20, 2012 at 10:49 AM, grainne wallace
<gr...@anaeko.com> wrote:
> Hi there,
>
> I currently have a lucene index based on version 3.5 made up of xml
> documents.
> I'd like to create smaller indexes from the main index ;
> 1) an index based on a date range from the last week
> 2) an index based on the last month
> 3) an index based on the last 3 months.
>
> The reason I would like to do this is because I am using semantic vectors
> code to create a semantic space based on time slices,
> semantic vectors has no programmatic way to do this,
>
> Can you advise,
> Regards
> Grainne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org