Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

query

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


grainne.wallace at anaeko

Aug 20, 2012, 2:49 AM

Post #1 of 4 (246 views)
Permalink
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 [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


ian.lea at gmail

Aug 20, 2012, 3:19 AM

Post #2 of 4 (243 views)
Permalink
Re: query [In reply to]

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
<grainne.wallace [at] anaeko> 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 [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


grainne.wallace at anaeko

Aug 20, 2012, 7:59 AM

Post #3 of 4 (235 views)
Permalink
Re: query [In reply to]

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 [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


ian.lea at gmail

Aug 20, 2012, 9:49 AM

Post #4 of 4 (234 views)
Permalink
Re: query [In reply to]

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
<grainne.wallace [at] anaeko> 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 [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.