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