Re: about analyzer for searching location

2010-04-19 Thread Samarendra Pratap
rstanding is, united and states are separately stored in index, but > not as "united states". So, if I build a query like Query q = > qp.parse("\"united states\""); It would not return any result. Am I right? > > Ian > > ---

Re: about analyzer for searching location

2010-04-19 Thread Ian.huang
not return any result. Am I right? Ian -- From: "Samarendra Pratap" Sent: Friday, April 16, 2010 9:02 PM To: Subject: Re: about analyzer for searching location Hi. I don't think you need a different analyzer. Read about PhraseQuery&

Re: about analyzer for searching location

2010-04-16 Thread Samarendra Pratap
Hi. I don't think you need a different analyzer. Read about PhraseQuery. If you are using parse() method of QueryParser. Enclose the searched string in extra double quotes, which must obviously be escaped. Quer

about analyzer for searching location

2010-04-15 Thread Ian.huang
Hi All, I am implementing a search function for address by hibernate search which is based on lucene. The class definition as following: @Indexed public class Address implements Cloneable { @DocumentId private int id; @Field private String addrCountry; private String addrDesc; @Field private Str