Re: Unique City, State results from index based on zip

2007-04-04 Thread Erick Erickson
The default operator for QueryParser is OR, so what you may really be getting is hits on Mill, and Vally is irrelevant. But this is just a guess, it'd be way more helpful if you told us what your index structure was and what query you actually submitted, for which query.toString is really helpful

Re: Unique City, State results from index based on zip

2007-04-04 Thread Jokin Cuadrado
don't index the city names with the zip codes. indexed text - Stored Value --- 94941 - 94941 Mill Vallley 94114 - 94114 Mill Vallley Mill Vallley - Mill Vallley 29715 - 29715 Fort Mill 29708 - 29708 Fort Mill

Unique City, State results from index based on zip

2007-04-03 Thread freaktet
I am having the following problem. I have an index I built from a standard US Zip Code table. Users can search for any combination of City, State and Zip. If they search for City, State, I want to find unique results, instead of one result for every zip code that city state has. For instance, a se