Re: Concept Search

2007-05-16 Thread Daniel Noll
On Thursday 17 May 2007 09:50:55 Erick Erickson wrote: > I thought that that's the point in the Synonym injection > example, setting Term.setPositionIncrement(0) for the injected > token(s). That way. phrase queries work since all of the > injected tokens share the same offset > > But I've been

Re: Concept Search

2007-05-16 Thread Mark Miller
There are quite a few ways to do this...you just read in the file to create a list of the words and when your query parser sees the right keyword either use a TokenFilter that expands to each word or just add each word to a BooleanQuery as a Should clause (or expand to a proper Lucene syntax st

Re: Concept Search

2007-05-16 Thread Erick Erickson
<> I thought that that's the point in the Synonym injection example, setting Term.setPositionIncrement(0) for the injected token(s). That way. phrase queries work since all of the injected tokens share the same offset But I've been wrong before. Erick On 5/16/07, Daniel Noll <[EMAIL PROTEC

Re: Concept Search

2007-05-16 Thread Daniel Noll
On Wednesday 16 May 2007 23:50:55 Erick Erickson wrote: > That's interesting. I suppose you could add the "synonym" of > WildAnimals$ whenever you encountered any of the items in your > list, then when concept searching is called for, search on > WildAnimals$. > > Highlighting might be tricky, but

Re: Concept Search

2007-05-16 Thread Steven Rowe
That's not precisely what I was imagining, although it does sound viable - I was thinking of using standard indexing, and then generating concept instantiations ("synonyms") at query time. - Steve Erick Erickson wrote: > That's interesting. I suppose you could add the "synonym" of > WildAnimals$ w

Re: Concept Search

2007-05-16 Thread Erick Erickson
That's interesting. I suppose you could add the "synonym" of WildAnimals$ whenever you encountered any of the items in your list, then when concept searching is called for, search on WildAnimals$. Highlighting might be tricky, but certainly do-able, especially with the capabilities of a MemoryInd

Re: Concept Search

2007-05-16 Thread Steven Rowe
Hi Charles, The need presented by your use case sounds very similar to that served by the SynonymAnalyzer given in Erik Hatcher's and Otis Gospodnetic's excellent book "Lucene in Action" - take a look: http://lucenebook.com/ Steve Charles Patridge wrote: > I have looked around on Lucene w