Hi Niels, > meanwhile I got Trie working in indexing and querying. I haven't tried > yet with the large document collection but with my small test setup it > works well. > > Does Trie also work with ranges from negative to positive numbers?
This is no problem, you can choose between long, int, double, float and other formats that can be expressed as those (like java.util.Date). This is different from all the tricks with numbers formatted using DecimalFormat and prefix-"0"s. The datatypes are converted into binary sortable ASCII-only strings (not human readable) independent of the sign or type (this is explained in JavaDocs with examples @ http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc/all/org/apach e/lucene/search/trie/package-summary.html). Even floats sort correctly and can be queried on the whole range between -INFINTY and +INFINITY. You must only fix to a type for a field, so if you index as int, you must query as int and so on. Uwe > Thank you very much for your support. > > Best > > Niels > > Uwe Schindler schrieb: > > Hallo Niels, > > > > Nice to hear. The Trie package will be included into Lucene 2.9, maybe > it > > will move directly to lucene-core and may change its API or it will stay > in > > Contrib-Queries, but it will be released soon. > > > > Uwe > > > > ----- > > Uwe Schindler > > H.-H.-Meier-Allee 63, D-28213 Bremen > > http://www.thetaphi.de > > eMail: u...@thetaphi.de > > > >> -----Original Message----- > >> From: Niels Ott [mailto:n...@sfs.uni-tuebingen.de] > >> Sent: Saturday, March 14, 2009 10:40 PM > >> To: java-user@lucene.apache.org > >> Subject: Re: AW: Re: Speeding up RangeQueries? > >> > >> Hello Uwe, > >> > >> thank you for clarifying things. I just checked the latest SVN revision > >> of Lucene and apparently everything still works as it should with my > >> system. Now I have to check if Trie does the job for me. > >> > >> I hope that Lucene 3 will include this fancy Trie package. > >> > >> Best, > >> > >> Niels > >> > >> > >> Uwe Schindler schrieb: > >>> Hello Niels, > >>> > >>> You cannot use the trie package with current lucene stable. To > >>> compile, you must also apply LUCENE-1478 to the core. Another option > >>> is to checkout trie and remove the SortField and static FieldCache > >>> parsers from TrieUtils. I am the developer of trie and I use it with > >>> trunk lucene on www.pangaea.de. > >>> > >>> Uwe > >>> > >>> Mit einem Mobiltelefon von Sony Ericsson gesendet > >>> > >>> > >>> ---- Originalnachricht ---- Von: Niels Ott > >>> <n...@sfs.uni-tuebingen.de> Gesendet: An: java-user@lucene.apache.org > >>> Betreff: Re: Speeding up RangeQueries? > >>> > >>> Hi Paul, > >>> > >>> Paul Elschot schrieb: > >>>> Performance normally mostly depends on the number of terms indexed > >>>> within the queried range. To limit the number of terms used during > >>>> a range search, have a look here for more info on the new > >>>> TrieRangeQuery: > >>>> http://wiki.apache.org/lucene-java/SearchNumericalFields > >>> This looks very promising. > >>> > >>> As far as I understand this is only available from the unreleased > >>> development version, right? How safe is this version for use? > >>> > >>> Is it possible to use only the org.apache.lucene.search.trie package > >>> from there together with the old and stable Lucene? > >>> > >>> Best > >>> > >>> Niels > >>> > >> > >> -- > >> Niels Ott > >> Computational Linguist (B.A.) > >> http://www.drni.de/niels/ > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > >> For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > -- > Niels Ott > Computational Linguist (B.A.) > http://www.drni.de/niels/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org