Street Number Range Search


#1

We have two fields Street Number 1 & Street Number 2 in Elastic Search. We also have an Address field in Elastic Search and Address is a combination of 2 fields with some other fields. So we have an address as:

  • 1604-1612 Calver Building
  • 1608- 1645 Park House

If the user is searching with 1610 both the address should be returned.

Any help of how the query should be formed?


(David Pilato) #2

So a range query on the first number and a range query on the second number all wrapped in a bool query inside the filter clause?


(Val Crettaz) #3

I didn't see this was cross-posted but an answer is available here:


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.