[Geocoding] Word order in query
Sarah Hoffmann
lonvia at denofr.de
Thu Jun 6 09:36:54 UTC 2013
On Thu, Jun 06, 2013 at 11:18:19AM +0200, Dariusz Bączkowski wrote:
> Dnia czwartek, 6 czerwca 2013 o 07:50:38 Sarah Hoffmann napisał(a):
> > On Sat, Jun 01, 2013 at 04:47:08PM +0200, Dariusz Bączkowski wrote:
> > > I have noticed strange behavior on Nominatim. In some queries word
> > > ordering do not have impact on results in some it has. Below are 2
> > > examples of this inconsistency. Should this queries return identical
> > > results? Is this a bug or there is some architectural explanation for
> > > it? Can it be fixed?
> >
> > It is more of an architectural thing. To Nominatim, these two queries are
> > vastly different. One is a search for a full name ("Konstantego Ildefonsa
> > Gałczyńskiego" is tagged exactly like that), for the other one it has to
> > look for partial matchings because it has the name backwards in its
> > database. To keep the search load acceptable, Nominatim doesn't go through
> > all potential partial matchings, so wether or not you get a result depends
> > on how far down the list the right query is.
>
> Is there a way to make it work on my local instance of Nominatim?
> Some patch? Ideal will be option in settings, but I can change it manually in
> code. I do not think performance hit will be noticable for us.
You can play with the limits for iGroupLoop and iQueryLoop around here
https://github.com/twain47/Nominatim/blob/master/website/search.php#L1156
Sarah
More information about the Geocoding
mailing list