Re: can't get docFreq of phrase

2007-03-20 Thread SK R
Thanks a lot. On 3/20/07, karl wettin <[EMAIL PROTECTED]> wrote: 20 mar 2007 kl. 12.14 skrev SK R: > Hi Mark, > Thanks for your reply. > Could i get this match length (docFreq) without using > searcher.search(..) ? > > One more doubt is "Preformace for getting search

Re: can't get docFreq of phrase

2007-03-20 Thread mark harwood
enough (cache the searcher) then avoid yourself the coding effort of using TermPositions API or the index overhead/complexity of using NGram analyzers. Cheers Mark - Original Message From: SK R <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, 20 March, 2007 1

Re: can't get docFreq of phrase

2007-03-20 Thread karl wettin
20 mar 2007 kl. 12.14 skrev SK R: Hi Mark, Thanks for your reply. Could i get this match length (docFreq) without using searcher.search(..) ? One more doubt is "Preformace for getting search length by using searcher.search(...) is same as using reader.docFreq(..)??

Re: can't get docFreq of phrase

2007-03-20 Thread SK R
Hi Mark, Thanks for your reply. Could i get this match length (docFreq) without using searcher.search(..) ? One more doubt is "Preformace for getting search length by using searcher.search(...) is same as using reader.docFreq(..)??; On 3/20/07, mark harwood <[EMAIL PROT

Re: can't get docFreq of phrase

2007-03-20 Thread mark harwood
IndexSearcher s=new IndexSearcher("/indexes/myindex"); PhraseQuery pq = new PhraseQuery(); pq.add(new Term("contents","test")); pq.add(new Term("contents","under")); int df=s.search(pq).length(); Cheers Mark - Original Message From: SK R <[EMAIL PRO