Hi

Erik


Apologies......



>> Do you want term  frequency across an individual document or the entire
index?

Of course the Frequency will have to be across the entire index.

In such case How does Explanation be usefull (Since Explanation is per
document)


Thx in advance
Karthik



-----Original Message-----
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 21, 2005 2:28 AM
To: java-user@lucene.apache.org
Subject: Re: BOOLEAN OPERATOR HOWTO



On Jul 19, 2005, at 8:31 AM, Karthik N S wrote:
> Given a Search word = 'erik OR hatcher AND otis OR gospodnetic' ,
> Is it
> possible to RETURN COUNT
> occurances for each of the word with in the Searched documents.
>
>
> This would give me the Each word's Term Frequency.
>
>
> How to achieve this

Wow - I really missed my guess on your question! :)

It is possible, but not directly (though you could spelunk the
Explanation to get this information per document).  Do you want term
frequency across an individual document or the entire index?

     Erik


>
> Thx in advance
> karthik
>
>
>
>
> -----Original Message-----
> From: Erik Hatcher [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 18, 2005 6:39 PM
> To: java-user@lucene.apache.org
> Subject: Re: BOOLEAN OPERATOR HOWTO
>
>
>
> On Jul 18, 2005, at 8:12 AM, Karthik N S wrote:
>
>> I have 2 Questions.
>>
> But there were no question marks!   I don't understand your questions
> at all, sorry, but I'll see if I can decipher it somewhat....
>
>
>> 1) The Search Criteria  src  requires to automatically fill   "  "
>> between  Search words with a Boolean Operator   "  AND ".
>>
>
> You mean to achieve AND'd clauses?   By default, OR is the operator,
> and AND must be explicit.  You can construct a QueryParser instance
> and set the default operator to AND, though, and then OR must be
> explicit.
>
>
>>  2) The Search Criteria  src  requires to automatically recognise
>> the existing  Boolean Query  ' AND , + '  present and append the same
>>      with  out any manupulations.
>>
>> Ex : -
>> Search Word  =
>>
>> 'Lucene in Action Erik hatcher and  Otis  + Gospodnetic '   =
>> lucene AND action AND Eric  AND hatcher AND otis + gospodnetic .
>>
>>
>> How to Achieve this , Is there any mechanism built into Lucene to
>> handle such situations.
>>
>
> Yes, this sounds like the default operator is what you're looking
> for.  Since you use "Lucene in Action" as an example, flip to page 94
> for more discussion on this, and then flip to the other pages
> mentioned here:
>
>      http://www.lucenebook.com/search?query=default+operator
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to