lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Condit <con...@sdsc.edu>
Subject RE: Analysis Question
Date Wed, 05 Aug 2009 21:11:27 GMT
Perhaps a better question: let's say I have a few thousand terms or phrases. I want to prefer
documents with these phrases in my search results over documents that do not have these terms
or phrases. What's the best way to accomplish this?
Thanks,
-Chris

> -----Original Message-----
> From: Christopher Condit [mailto:condit@sdsc.edu]
> Sent: Tuesday, July 21, 2009 2:48 PM
> To: java-user@lucene.apache.org
> Subject: Analysis Question
> 
> I'm trying to implement an analyzer that will compute a score based on
> vocabulary terms in the indexed content (ie a document field with more
> terms in the vocabulary will score higher). Although I can see the
> tokens I can't seem to access the document from the analyzer to set a
> new field on it after I compute the value. Is there a way to do this
> from an Analyzer? Or is there another preferred way to do this?
> Thanks,
> -Chris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


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