Re: Help with a fieldcomparator!

2015-01-17 Thread Victor Podberezski
every complex problem there is a solution > that is simple, elegant, and wrong". I specialize in these... > > I don't have a good answer for your question then. How > is what you're trying failing? > > Best, > Erick > > On Fri, Jan 16, 2015 at 4:59 PM, V

Re: Help with a fieldcomparator!

2015-01-16 Thread Victor Podberezski
ator. > > FWIW, > Erick > > On Fri, Jan 16, 2015 at 4:00 PM, Victor Podberezski > wrote: > > I need a hand with a custom comparator. > > > > I have a field filled with words separated by spaces. Some words has > > numbers inside. > > > > I nee

Help with a fieldcomparator!

2015-01-16 Thread Victor Podberezski
I need a hand with a custom comparator. I have a field filled with words separated by spaces. Some words has numbers inside. I need to extract those numbers and sort the documents by this number. I need to get the lower if there are more than 1 number . For example: doc1 "val2 val3" --> 2

problem in setNextReader from FieldComparator

2015-01-15 Thread Victor Podberezski
i'm struggling with a migration from lucene 2.4 to 2.9 I'm trying to migrate from SortComparatorSource to FieldComparator. I cannot make it works right after a lot of tests. I noted that inside the setNextReader method not all the stored field's terms are retrieved. For example i have one documen

Problem with Custom FieldComparator

2015-01-12 Thread Victor Podberezski
I'm changing one web application with lucene 2.4.1 to lucene 2.9.4 (basically because this bug: https://issues.apache.org/jira/browse/LUCENE-1304). I'm trying to migrate a custom sort field according to some examples i read. But I cannot make it work right. I have a field with string values and w