Re: sort by field length

2010-08-27 Thread Lance Norskog
t;> Hi folks, >> >> is it possible to sort by field length without having to (redundantly) >> save the length information in a seperate index field? At first, I thought >> to accomplish this using a function query, but I couldn't find an >> appropriate one. >&

Re: sort by field length

2010-08-26 Thread Shawn Heisey
On 5/24/2010 6:30 AM, Sascha Szott wrote: Hi folks, is it possible to sort by field length without having to (redundantly) save the length information in a seperate index field? At first, I thought to accomplish this using a function query, but I couldn't find an appropriate one. I

Re: sort by field length

2010-05-26 Thread Erick Erickson
t;>> >>>> Good point, thank you for the clarification. I "thought" that Lucene >>> internally stores the field length (e.g., in order to compute the >>> relevance) >>> and getting this information at query time requires only a simple lookup. >

Re: sort by field length

2010-05-26 Thread Sascha Szott
that would still be redundant... Best Erick On Mon, May 24, 2010 at 8:30 AM, Sascha Szott wrote: Hi folks, is it possible to sort by field length without having to (redundantly) save the length information in a seperate index field? At first, I thought to accomplish this using a functi

Re: sort by field length

2010-05-25 Thread Erick Erickson
d getting this information at query time requires only a simple lookup. > > -Sascha > > > >> But you could consider payloads for storing the length, although >> that would still be redundant... >> >> Best >> Erick >> >> On Mon, May 24, 2010 at 8:3

Re: sort by field length

2010-05-25 Thread Sascha Szott
uery time requires only a simple lookup. -Sascha But you could consider payloads for storing the length, although that would still be redundant... Best Erick On Mon, May 24, 2010 at 8:30 AM, Sascha Szott wrote: Hi folks, is it possible to sort by field length without having to (red

Re: sort by field length

2010-05-24 Thread Erick Erickson
considering you may be sorting all the terms in your index worst-case. But you could consider payloads for storing the length, although that would still be redundant... Best Erick On Mon, May 24, 2010 at 8:30 AM, Sascha Szott wrote: > Hi folks, > > is it possible to sort by field

sort by field length

2010-05-24 Thread Sascha Szott
Hi folks, is it possible to sort by field length without having to (redundantly) save the length information in a seperate index field? At first, I thought to accomplish this using a function query, but I couldn't find an appropriate one. Thanks in advance, Sascha