Re: how to preserve whitespaces etc when tokenizing stream?

2012-01-16 Thread Dmytro Barabash
I think you need index this field with org.apache.lucene.document.Field.TermVector != NO - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Unusual scoring

2011-01-24 Thread Dmytro Barabash
Hi! My index contains a few (really 7) fields and I need to search by all of them. I use BooleanQuery and seven TermQueries added to this one. Problem: result must to be sorted by max(field.boost), not by Lucene’s default formula. I think, for this I need to implement MySimilarity (it will simply r

Re: Unusual scoring

2011-01-24 Thread Dmytro Barabash
Thanks a lot, Umesh! 2011/1/24 Umesh Prasad : >  DisjunctionMaxQuery may be one you are looking for. > http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/DisjunctionMaxQuery.html >   *This is useful when searching for a word in multiple fields with > different boost factors (so that

Spatial search: collect distances

2011-03-30 Thread Dmytro Barabash
Hi all! I need 1) sort search results by distance from some point and 2) show these distances for end-user together with other document information. 1) is simple – like an example in “Lucene in action”: there are latitude and longitude fields for each document in index, MyDistanceComparatorSource (

Re: Spatial search: collect distances

2011-03-30 Thread Dmytro Barabash
I am sorry to trouble, problem solved (in fact problem is absent :) ). Calculated distances saved in ScoreDoc (actually FieldDoc). 2011/3/30 Dmytro Barabash : > Hi all! > I need 1) sort search results by distance from some point and 2) show > these distances for end-user together w