dcsimg
Unique City/State results from an index based on zip (with multiple zips for most City, State combos)
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michael_Myers
Posted On:   Tuesday, April 3, 2007 08:24 PM

I have an index of with City, State and Zip fields. If I search with zip, of course, I have no problem, but of course if I search for just the city state combination I am getting a hit for every zip. Can anyone think of a good way to only get one match despite the number of City, State, Zip combos for any given City, State?

In other words, if I search for "Mill Valley, CA", I am getting a match for every Mill Valley, CA zip code, but in that case I only want one match.

Thanks for any help. I'm new to Lucene, obviously...

About | Sitemap | Contact