lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasper van Veghel (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3865) MemoryIndex does not allow user to add multiple values for a single field name
Date Mon, 03 Sep 2012 13:19:08 GMT


Jasper van Veghel commented on LUCENE-3865:

Is MemoryIndex still a relevant way of doing Prospective Search? I see a couple of other issues
that talk about using a regular IndexWriter with a MemoryCodec.

I myself am also looking for a way to do Prospective Search — I'd like to push documents
into both Apache Solr (general search) and something like MemoryIndex (for alerting a large
number of users instantly.) I've implemented it to the point where I have a Solr IndexSchema
to provide me with the same Analyzers as the ones the Apache Solr instance has, but now I'm
running into the issue that MemoryIndex does not support multiple fields and only supports
String-valued elements (less of an issue than the lack of multiple-field support) .. Should
I make an effort to try and add multiple-field support to MemoryIndex or should I look towards
another way of achieving the same? :-)
> MemoryIndex does not allow user to add multiple values for a single field name
> ------------------------------------------------------------------------------
>                 Key: LUCENE-3865
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/other
>    Affects Versions: 3.5
>         Environment: All
>            Reporter: Dave Seltzer
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> When using MemoryIndex.addField the following operation throws an IllegalArgumentException:
> index.addField("foobar", "value1", LuceneAnalyzer); 
> index.addField("foobar", "value2", LuceneAnalyzer); 
> This throws:
> java.lang.IllegalArgumentException: field must not be added more than once
> According to Uwe Schindler on the java-user mailing list this violates the IndexWriter/IndexReader

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message