Re: TopDocsCollector and sorting

2011-03-15 Thread Israel Tsadok
TopDocsCollector.topDocs() does return the results sorted, by score. It basically returns a slice of a PriorityQueue. You can take a look at the source, it's one of the easier parts of t

Re: lucid gaze

2011-03-15 Thread Anshum
Hi Suman, I tried it a while ago. Found it nice and useful. You could get some hints on using it at http://ai-cafe.blogspot.com/2009/09/lucid-gaze-tough-nut.html (in case you need some ! :) ) -- Anshum Gupta http://ai-cafe.blogspot.com On Wed, Mar 16, 2011 at 11:37 AM, suman.holani wrote: > Hel

lucid gaze

2011-03-15 Thread suman.holani
Hello, If Lucid gaze compatible to lucene 3.0.3 exist? Anyone has used lucid gaze for measuring /analyzing searching performance . How is it? Regards, Suman

RE:Re: How to do an all field search without using a "catchall" fieldor "MultiFieldQueryParser" ?

2011-03-15 Thread shrinath.m
Thanks Ian, I'd have to create a similarly sized array of Boolean.Occur too, isn't it? 1. Is that how SIREn implements it? 2. Is that optimal solution if I'm going to have an index of a billion docs with varying number of fields? -- View this message in context: http://lucene.472066.n3.na

TopDocsCollector and sorting

2011-03-15 Thread Ryan Aylward
Does the TopDocsCollector sort the docs it returns? The java doc for... public final TopDocs topDocs(int start) states Returns the documents in the range [start .. pq.size()) that were collected by this collector. Note that if start >= pq.size(), an empty TopDocs is returned. This method i

Early Termination

2011-03-15 Thread Alex vB
Hi, is Lucene capable of any early termination techniques during query processing? On the forum I only found some information about TimeLimitedCollector. Are there more implementations? Regards Alex -- View this message in context: http://lucene.472066.n3.nabble.com/Early-Termination-tp2684557p

Re: About ComplexPhraseQueryParser highlight prob

2011-03-15 Thread Ahmet Arslan
--- On Tue, 3/15/11, Cescy wrote: > From: Cescy > Subject: About ComplexPhraseQueryParser highlight prob > To: "java-user" > Date: Tuesday, March 15, 2011, 11:44 PM > hi > > > My app can find the document but cannot highlight the > keywords. > > >   ComplexPhraseQueryParser parser = new >

About ComplexPhraseQueryParser highlight prob

2011-03-15 Thread Cescy
hi My app can find the document but cannot highlight the keywords. ComplexPhraseQueryParser parser = new ComplexPhraseQueryParser(Version.LUCENE_30, "contents", analyzer); Query query = parser.parse("\"(great~) sum*\""); QueryScorer scorer = new QueryScorer(query); Looks like its becau

About highlighter

2011-03-15 Thread Cescy
Hi, My highlight code is shown as following: QueryScorer scorer = new QueryScorer(query); Highlighter highlighter = new Highlighter(simpleHTMLFormatter, scorer); highlighter.setTextFragmenter(new SimpleSpanFragmenter(scorer, 500)); String contents = doc.get("contents"); TokenStream t

Re: About query parser

2011-03-15 Thread Ahmet Arslan
> For example, i wanna search for 'great sum', and 'great > sum', 'greater sum', ... may be found, and sum great must > not be found. It means I need not only exact word, but also > prefix search (or some other search criteria like fuzzy...). > In my app, I used "great* sum*", but it does not work

Re: How to do an all field search without using a "catchall" field or "MultiFieldQueryParser" ?

2011-03-15 Thread Ian Lea
IndexReader.getFieldNames()? public abstract Collection getFieldNames(IndexReader.FieldOption fldOption) Use that to get indexed fields and pass that list to MultiFieldQueryParser. -- Ian. On Tue, Mar 15, 2011 at 10:46 AM, shrinath.m wrote: > Catchall field has its own disadvantages of increa

How to do an all field search without using a "catchall" field or "MultiFieldQueryParser" ?

2011-03-15 Thread shrinath.m
Catchall field has its own disadvantages of increasing index size. MultiFieldQueryParser has to know the field names before hand. How do I do a multi field search - without knowing fields in the index - without having a CatchAll field PS : I went through the Lucene in Action book, and in cha

Re: no. of documents with hits vs. no. of hits

2011-03-15 Thread Ian Lea
Lucene counts the number of matched docs. A particular document will count as 1 whether it is matched by 1 search term or many search terms. I don't believe it is possible to count what you are asking for using standard calls. It might be possible with a custom collector that somehow had access

About query parser

2011-03-15 Thread Cescy
Hi, I used parser in my app. For example, i wanna search for 'great sum', and 'great sum', 'greater sum', ... may be found, and sum great must not be found. It means I need not only exact word, but also prefix search (or some other search criteria like fuzzy...). In my app, I used "great*