lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaeger, Jay - DOT" <>
Subject RE: A fieldType for a address street
Date Mon, 26 Sep 2011 21:12:59 GMT
We used copyField to copy the address to two fields:

1.  Which contains just the first token up to the first whitespace
2.  Which copies all of it, but translates to lower case.

Then our users can enter either a street number, a street name, or both.   We copied all of
it to the second field because it is not, in general, possible to distinguish between a house
number and something else: a house number is not always present, and when present is not always
numeric.  Both are solr.TextField:

    <fieldType name="streetnumber" class="solr.TextField">
          <tokenizer class="solr.PatternTokenizerFactory"
          <filter class="solr.LowerCaseFilterFactory" />


-----Original Message-----
From: Otis Gospodnetic [] 
Sent: Friday, September 23, 2011 9:27 AM
Subject: Re: A fieldType for a address street


A text or ngram field should do it.

Sematext :: :: Solr - Lucene - Nutch
Lucene ecosystem search ::

----- Original Message -----
> From: Nicolas Martin <>
> To:
> Cc: 
> Sent: Friday, September 23, 2011 5:55 AM
> Subject: A fieldType for a address street
> Hi solR users!
> I'd like to make research on my client database, in particular, i need to 
> find client by their address (ex : "100 avenue des champs élysée")
> Does anyone know a good fieldType to store my addresses to enable me to search 
> client by address easily ?
> thank you all

View raw message