lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: Need Help for Location searching
Date Tue, 31 Dec 2013 16:46:57 GMT
Hi Rashi,

Closest thing came to my mind is PathHierarchyTokenizerFactory


On Tuesday, December 31, 2013 3:16 PM, rashi gandhi <> wrote:

I wanted to design an analyzer that can support location containment
relationship For example Europe->France->Paris

My requirement is like: when a user search for any country , then results
must have the documents having that country , as well as the documents
having states and cities which comes under that country.

But, documents with country name must have high relevancy.

And the same when a user search for state or city.

It must obeys containment relationship up to 4 levels .i.e.

Also, I have designed analyzer using synonym filter factory for the same,
and its working as per expectation.

But I wanted to know, is there any another way, apart from using synonym
filter factory that can be used for the same.

Is SOLR provide any tokenziers or filters for this?

Please provide me some pointers to move ahead.

Thanks in Advance

View raw message