lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: About WordNet synonyms search
Date Sat, 12 Feb 2011 16:03:23 GMT
At a guess make is a synonym for one of your search terms. doc.get
returns the original content, not synonyms.


So what are your synonyms that might be a factor here?

Best
Erick

On Sat, Feb 12, 2011 at 6:04 AM, Gong Li <ee07b381@gmail.com> wrote:
> Hi,
>
> I am tying WordNet synonyms into an SynonymAnalyzer. But I find there is a
> wrong in the search result as following:
>
> input keywords: *browned fox*
>
> query.toString(): (content:browned content:brown) (content:fox content:trick
> content:throw content:slyboots content:fuddle content:fob content:dodger
> content:discombobulate content:confuse content:confound content:befuddle
> content:bedevil)
>
> topDocs.totalHits: 2
>
> doc.get("content"):
> Result1: We can <b><font color = RED>*make*</font></b> it easy
by Bluetooth
> for the communications between computer
> Result2: The quick <b><font color = RED>*brown*</font></b> <b><font
color =
> RED>*fox*</font></b> jump over the lazy dog
>
> Result2 is desired result. WHY does it find *make *as the search result???
> HOW can I fix the problem???
>

---------------------------------------------------------------------
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