You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Karthik N S <ka...@controlnet.co.in> on 2004/07/07 06:01:07 UTC

Search & Hit Score

Hi
Dev Guys

Apologies.....

I have 3 Questions for u.

1)
  I have a situation in here where I am suppose to group  unique indexerd
Documents
  depending upon the number of  hit's per document.

  To Breifly Explain this

  All documet with "n"  hits  for a Search word would be grouped under
"Catagory A"

 and all document with  hits "n+1"  for the same Search Word should be
grouped under  "Catagory B".

 Can Lucene provide some means internally to handle this situation.


2) What is this weight /Boost factor  avaliable for the hits  ,and how to
use this Effectively.


3) Is there any thing in Lucene Core which reveles the version numbering of
current used jar files

       something like on command prompt  "Java -version"  displaying the
version.





with regards
Karthik




-----Original Message-----
From: Erik Hatcher [mailto:erik@ehatchersolutions.com]
Sent: Tuesday, July 06, 2004 4:22 PM
To: Lucene Users List
Subject: Re: Latest StopAnalyzer.java


On Jul 6, 2004, at 2:53 AM, Morus Walter wrote:
> Karthik N S writes:
>>
>> Can SomeBody Tell me Where Can I find Latest copy of
>> "StopAnalyzer.java"
>> which can be used with Lucene1_4-final,
>> On Lucene-Sandbox I am not able to Find it.
>>
>> [ My Company Prohibits me from using CVS ]
>>
> There is no lucene 1.4 final but
> org.apache.lucene.analysis.StopAnalyzer
> is part of the lucene core.

Actually Doug did create Lucene 1.4 final:

	http://jakarta.apache.org/lucene/docs/index.html

I'll try to squeeze in some time today to make it more official by
ensuring the binaries are mirrored and such.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


RE: Search & Hit Score

Posted by Karthik N S <ka...@controlnet.co.in>.
Hey Ype

 Apologies .....


 I would be more intrested in Boost/Weight factor in terms of  Query rather
then Fields.

 Please explain with example src.....

With regards
Karthik


-----Original Message-----
From: Ype Kingma [mailto:ykingma@xs4all.nl]
Sent: Wednesday, July 07, 2004 12:08 PM
To: lucene-user@jakarta.apache.org
Subject: Re: Search & Hit Score


On Wednesday 07 July 2004 08:25, Ype Kingma wrote:
>
> For a single term query, one can iterate through
> IndexReader.termDocs(Term) and store the document numbers by
> TermDocs.docFreq().

That should be TermDocs.freq()

Oops,
Ype


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Search & Hit Score

Posted by Ype Kingma <yk...@xs4all.nl>.
On Wednesday 07 July 2004 08:25, Ype Kingma wrote:
>
> For a single term query, one can iterate through
> IndexReader.termDocs(Term) and store the document numbers by
> TermDocs.docFreq().

That should be TermDocs.freq()

Oops,
Ype


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Search & Hit Score

Posted by Ype Kingma <yk...@xs4all.nl>.
Karthik,

On Wednesday 07 July 2004 06:01, Karthik N S wrote:
> Hi
> Dev Guys
>
> Apologies.....
>
> I have 3 Questions for u.
>
> 1)
>   I have a situation in here where I am suppose to group  unique indexerd
> Documents
>   depending upon the number of  hit's per document.
>
>   To Breifly Explain this
>
>   All documet with "n"  hits  for a Search word would be grouped under
> "Catagory A"
>
>  and all document with  hits "n+1"  for the same Search Word should be
> grouped under  "Catagory B".
>
>  Can Lucene provide some means internally to handle this situation.

For a single term query, one can iterate through
IndexReader.termDocs(Term) and store the document numbers by
TermDocs.docFreq().

>
> 2) What is this weight /Boost factor  avaliable for the hits  ,and how to
> use this Effectively.

Could you be a bit more precise? Lucene has weights for fields
and for queries (called boost) and in Hits the documents have a score.

>
> 3) Is there any thing in Lucene Core which reveles the version numbering of
> current used jar files

The name of the jar file, but no API that I know of. You might invoke java
with -Dsomeproperty=lucenexxxxxxxxx.jar, and use that java system property.


Kind regards,
Ype


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


RE: Search & Hit Score

Posted by Karthik N S <ka...@controlnet.co.in>.
Hey

 Dev Guys

 Apologies........



  Can some body  Explain me How to Retrieve  All hits  avaliable per indexed
document.

   To explain in Detail


   A Physical Search on Single document would list 3 places  for a certain
word occurance,

   So if  i am suppose to retrieve all the 3 Occurances from the same Field
using Lucene ...

   How to handle the query .. ... Explain with a simple SRC Example


 with regards
  Karthik





---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org