lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bram Kouwenberg" <b.kouwenb...@asknow.nl>
Subject RE: SPECIFIC HIT
Date Mon, 14 Mar 2005 10:25:29 GMT
Well,

If I understand the workings of the TF/IDF model used by Lucene correctly, then doc 6 should
score lower than 3 because of the extra noise caused by 'CABEL ACCESSORIES', and setting the
threshold high enough for feedback of the highest score should do the trick. Right?
 
Bram Kouwenberg

-----Oorspronkelijk bericht-----
Van: sergiu gordea [mailto:gsergiu@ifit.uni-klu.ac.at] 
Verzonden: maandag 14 maart 2005 11:19
Aan: java-user@lucene.apache.org
Onderwerp: Re: SPECIFIC HIT

Karthik N S wrote:

> ** 
>
> *Hi  Guys*
>
> *Apologies...........*
>
> *I have Indexed documents sucessfully and they would be
>
> **Document 1 contains   =  ELECTRONICS  DIGITAL CAMERA
> ***Document 2 contains   =  ELECTRONICS  DIGITAL CAMERA BATTERY 
> ACCESSORIES*
> *Document 3 contains*   =  ELECTRONICS  DIGITAL CAMERA 0PTICS
> *Document 4 contains*  =   ELECTRONICS  DIGITAL CAMERA ACCESSORIES
> *
>
> **Document 5 contains*  =   ELECTRONICS  DIGITAL CAMERA CABEL ACCESSORIES
> ***Document 6 contains*  =   ELECTRONICS  DIGITAL CAMERA OPTICS CABEL 
> ACCESSORIES
> *Document 7 contains*  =   ELECTRONICS  DIGITAL CAMERA APPERAL 
> ACCESSORIES*
>
> *On Search  "Digital Camera Optics" , How to get hits return me 3rd 
> Document ONLY
> **instead of other Documents  [ The word DIGITAL CAMERA is common word 
> in all cases].
> *
>
> *Thx in advance
> **Karthik*
>

You cannot get just the 3rd document.
If you set default operator to AND in queryparser, then you will the 3rd 
and the 6th document.

your query must look like:

+digital +camera +optics

 Best,

  Sergiu

>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>
> *WITH WARM REGARDS
> HAVE A NICE DAY
> [ N.S.KARTHIK]*
>


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


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.2 - Release Date: 11-3-2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.2 - Release Date: 11-3-2005
 

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


Mime
View raw message