Re: Rewrite one phrase to another in search query

2007-12-07 Thread Tom Emerson
Bleh, never mind this, I've replied to the wrong thread... mea culpa. On Dec 7, 2007 4:21 PM, Tom Emerson <[EMAIL PROTECTED]> wrote: > Hi Mark, > > Thanks for the pointer, but for my application I already have a custom > query parser, and I think the use of a functional query will do what I want.

Re: Rewrite one phrase to another in search query

2007-12-07 Thread Tom Emerson
Hi Mark, Thanks for the pointer, but for my application I already have a custom query parser, and I think the use of a functional query will do what I want. -tree On Jun 28, 2007 7:46 PM, Mark Miller <[EMAIL PROTECTED]> wrote: > You might try my Query Parser, Qsol. http://myhardshadow.com/q

Re: Rewrite one phrase to another in search query

2007-06-28 Thread Mark Miller
You might try my Query Parser, Qsol. http://myhardshadow.com/qsol.php There is a find/replace feature that will do what you want. FindReplace takes the find string, the replace string, boolean for case sensitive, boolean to indicate the replacement will act as an operator (allows for correct de

Re: Rewrite one phrase to another in search query

2007-06-27 Thread Chris Hostetter
: (AFACT, however, their approach does not address multi-word synonyms). : Although a query-time analyzer is not directly discussed, they do say Solr's has a SynonymFilter that does handle multi-word synonyms, and it can handle query-time synonyms, but there are some caveats to both of those use

Re: Rewrite one phrase to another in search query

2007-06-27 Thread Steven Rowe
Hi Aliaksandr, Aliaksandr Radzivanovich wrote: > What if I need to search for synonyms, but synonyms can be expanded to > phrases of several words? > For example, user enters query "tcp", then my application should also > find documents containing phrase "Transmission Control Protocol". And > conv

Re: Rewrite one phrase to another in search query

2007-06-27 Thread Erick Erickson
The synonym analyzer shown in Lucene In Action is a good place to start. You need to change *all* occurrences of one form into another, both an index and search time to get consistent results. There are some "interesting" implications for this, though, but they only really need to be considered i