Re: Postcode/zipcode search

2008-05-24 Thread Ian Holsman (Lists)
CTED]> To: java-user@lucene.apache.org Sent: Tuesday, 6 May, 2008 5:28:25 PM Subject: Postcode/zipcode search Hi all I've got a bit of a niggling problem with how one of my searches is working as opposed to how my users would like it too work. We're indexing on UK postcodes, which are in

Re: Postcode/zipcode search

2008-05-06 Thread mark harwood
Message From: Chris Mannion <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, 6 May, 2008 5:28:25 PM Subject: Postcode/zipcode search Hi all I've got a bit of a niggling problem with how one of my searches is working as opposed to how my users would like it too w

Re: Postcode/zipcode search

2008-05-06 Thread AJ Weber
-string against the postalcode field. Dunno. Just an idea. Good Luck! -AJ - Original Message - From: Chris Mannion To: java-user@lucene.apache.org Sent: Tuesday, May 06, 2008 12:28 PM Subject: Postcode/zipcode search Hi all I've got a bit of a niggling problem with

RE: Postcode/zipcode search

2008-05-06 Thread Will Johnson
do fuzzy search ie post1:NW10 post2:7?Y and so on. - will -Original Message- From: Chris Mannion [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 06, 2008 12:28 PM To: java-user@lucene.apache.org Subject: Postcode/zipcode search Hi all I've got a bit of a niggling problem with how one of

Re: Postcode/zipcode search

2008-05-06 Thread Erick Erickson
Have you looked at PrefixQuery? If that doesn't work for you, could you give a few more examples of expected inputs and outputs? Best Erick On Tue, May 6, 2008 at 12:28 PM, Chris Mannion <[EMAIL PROTECTED]> wrote: > Hi all > > I've got a bit of a niggling problem with how one of my searches is >

Re: Postcode/zipcode search

2008-05-06 Thread Grant Ingersoll
You might have a look at using a phrase query when you have more than one term in the query in addition to your term query, but giving the phrase query more weight (i.e. give an exact match more weight) and keep your original tokenization process. Something like: "NW10 7NY"^5 OR NW10 OR 7NY

Postcode/zipcode search

2008-05-06 Thread Chris Mannion
Hi all I've got a bit of a niggling problem with how one of my searches is working as opposed to how my users would like it too work. We're indexing on UK postcodes, which are in the format of a 3 or 4 character area code followed by a 3 or 4 character street specific code, e.g. "NW10 7NY" or "M1