Re: using boolean operators with the PhraseQuery

2006-04-24 Thread Vishal Bathija
the spans of either clause1 or clause2. Vishal On 4/22/06, Paul Elschot [EMAIL PROTECTED] wrote: On Friday 21 April 2006 21:11, Vishal Bathija wrote: Hi, I am trying to get the frequency of a phrase using the SpanNearQuery. How can I use SpanNearQuery for boolean queries. The code I have

Re: using boolean operators with the PhraseQuery

2006-04-21 Thread Vishal Bathija
= new SpanNearQuery(clauses, 0, true); Spans spans = near.getSpans(rd); Regards Vishal On 4/19/06, Daniel Naber [EMAIL PROTECTED] wrote: On Mittwoch 19 April 2006 07:25, Vishal Bathija wrote: Query= contents:provides distribution contents:supports distribution Why

using boolean operators with the PhraseQuery

2006-04-18 Thread Vishal Bathija
= searcher.search(query); How can I extend this to search for multiple phrases? Regards Vishal -- Vishal Bathija Graduate Student Department of Computer Science Systems Analysis Miami University Oxford,Ohio Phone: (513)-461-9239

Re: using boolean operators with the PhraseQuery

2006-04-18 Thread Vishal Bathija
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vishal Bathija Graduate Student Department of Computer Science Systems Analysis Miami University Oxford,Ohio Phone: (513)-461-9239

Re: Not able to retrieve hits for a phrase

2006-04-17 Thread Vishal Bathija
used during indexing. Be aware that matches are *exact* including case. Erik On Apr 17, 2006, at 1:34 AM, Vishal Bathija wrote: Hi, I am not able to retrieve the number of hits for a particular phrase . The code below retrieves the hits only for certain phrases. The code

Re: Not able to retrieve hits for a phrase

2006-04-17 Thread Vishal Bathija
PROTECTED] wrote: Are the terms you're adding to PhraseQuery lowercased? If not, then that is most likely the issue. Erik On Apr 17, 2006, at 9:39 AM, Vishal Bathija wrote: I currently use writer = new IndexWriter(index, new StandardAnalyzer(),true); Should I use any other

Not able to retrieve hits for a phrase

2006-04-16 Thread Vishal Bathija
such as Prevents Data Loss I am not sure what the problem could be as none of these phrases have any special characters. Do I need to use any other type of query? Regards Vishal -- Vishal Bathija Graduate Student Department of Computer Science Systems Analysis Miami University Oxford,Ohio

Calculating term and document frequency for multiple word terms

2006-04-10 Thread Vishal Bathija
. Any suggestions would be greatly appreciated. Kind Regards Vishal Bathija -- Vishal Bathija Graduate Student Department of Computer Science Systems Analysis Miami University Oxford,Ohio Phone: (513)-461-9239