Re: length of indexed value

2017-10-04 Thread John Blythe
ah, thanks for the link. -- John Blythe On Wed, Oct 4, 2017 at 9:23 AM, Erick Erickson wrote: > Check. The problem is they don't encode the exact length. I _think_ > this patch shows you'd be OK with shorter lengths, but check: >

Re: length of indexed value

2017-10-04 Thread Erick Erickson
Check. The problem is they don't encode the exact length. I _think_ this patch shows you'd be OK with shorter lengths, but check: https://issues.apache.org/jira/browse/LUCENE-7730. Note it's not the patch that counts here, just look at the table of lengths. Best, Erick On Wed, Oct 4, 2017 at

Re: length of indexed value

2017-10-04 Thread John Blythe
interesting idea. the field in question is one that can have a good deal of stray zeros based on distributor skus for a product and bad entries from those entering them. part of the matching logic for some operations look for these discrepancies by having a simple regex that removes zeroes. so

Re: length of indexed value

2017-10-04 Thread alessandro.benedetti
Are the norms a good approximation for you ? If you preserve norms at indexing time ( it is a configuration that you can operate in the schema.xml) you can retrieve them with this specific function query : *norm(field)* Returns the "norm" stored in the index for the specified field. This is the

Re: length of indexed value

2017-10-03 Thread Dave
based on > the length of an indexed value. only things i could find/think of would be > one of two things: > > - use the strdist function to see how different things are (instead of > comparing specific lengths) > - create a new field to be indexed with the length of what i know will en

length of indexed value

2017-10-03 Thread John Blythe
hey all. was hoping to find a query function that would allow me to filter based on the length of an indexed value. only things i could find/think of would be one of two things: - use the strdist function to see how different things are (instead of comparing specific lengths) - create a new