Oh, my fault!
Thanks, Uwe!
Alexander
--
View this message in context:
http://lucene.472066.n3.nabble.com/Array-as-Lucene-Field-tp4300445p4300597.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
PhraseQuery will not work against StringField: that field indexes the
entire string as a single token.
Try running it against the TextField instead?
Mike McCandless
http://blog.mikemccandless.com
On Wed, Oct 5, 2016 at 6:52 PM, lukes wrote:
> Hi all,
>
> I am trying to do phrase query searc
It looks like the field infos of your index went out of sync with data
stored in the files about points.
Can you run CheckIndex on your index (potentially with the `-fast` option
so that it only verifies checksums)? It could be that one of these two
parts of the index got corrupted.
Since you wer
Hi,
Why is this a problem? Maybe you misunderstood. You can add several
NumericField instances with same name! Something like:
for (double d : array) {
document.add(new DoubleField("myfield", d, Field.Store.YES/NO));
}
Uwe
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.t
Thanks for quick response!
Several NumericFields is a bit complicated, because I do not know how many
values might be in array.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Array-as-Lucene-Field-tp4300445p4300451.html
Sent from the Lucene - Java Users mailing list archiv
Hi everyone!
I've faced a problem and had no idea how to resolve it.
So, I've got a directory with documents.
Each document might contain array of doubles. However, Lucene does not
support arrays.
What I need is to have an ability to sort documents by this field, search
values (with support of ba
Hi,
I forgot to mention: Sorting is not possible (at least not in a consistent
way), but queries will work.
Uwe
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> From: Uwe Schindler [mailto:u...@thetaphi.de]
> Sent: Monday, October 10, 201
Hi,
You can add multiple values as NumericFields (Lucene 5.x) or PointValues
(Lucene 6+). Just create a separate field instance and all all of them. The
same applies for all field types.
Uwe
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
Hi everyone!
I've faced a problem and had no idea how to resolve it.
So, I've got a directory with documents.
Each document might contain array of doubles. However, Lucene does not
support arrays.
What I need is to have an ability to sort documents by this field, search
values (with support of ba