Re: Preventing phrase queries from matching across lines

2006-04-29 Thread Eric Jain
Erik Hatcher wrote: On Apr 28, 2006, at 5:35 AM, Eric Jain wrote: What is the best way to prevent a phrase query such as "eggs white" matching "fried eggs\nwhite snow"? Two possibilities I have thought about: 1. Replace all line breaks with a special string, e.g. "newline". 2. Have an analyze

Re: Preventing phrase queries from matching across lines

2006-04-28 Thread Erik Hatcher
On Apr 28, 2006, at 5:35 AM, Eric Jain wrote: What is the best way to prevent a phrase query such as "eggs white" matching "fried eggs\nwhite snow"? Two possibilities I have thought about: 1. Replace all line breaks with a special string, e.g. "newline". 2. Have an analyzer somehow increment