Hi Ryan,

I'm not sure Lucene's the right tool for this job.

I have used regular expressions and ternary search trees in the past to do 
similar things.

Is the set of keywords too large for an in-memory solution like these?  If not, 
consider using a tool like the Perl package Regex::PreSuf 
<http://search.cpan.org/dist/Regex-PreSuf/> - it can convert a list of strings 
into a compact set of alternations, which you can then import into a Java 
program.  (I'm not aware of any similar Java tools.)

Steve

On 07/23/2008 at 3:30 PM, Ryan Detzel wrote:
> Everything i've read and seen about luceen is search for keywords in
> documents; I want to do the reverse. I have a huge list of
> keywords("big boy","red ball","computer") and I have phrases that I
> want to see if they keywords are in. For example using the small
> keyword list above(store in documents in lucene) what's the best
> approach to pass in a query "the girl likes red balls" and have it
> match the keyword "red ball"?

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

Reply via email to