-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search by Postcode #90
Comments
Hi @bdmapman, re "but in search, I am unable to search with the value", this seems to work for me:
You might be getting the parameters confused, the structured endpoint ( There are a variety of filtering and scoring parameters on the fulltext endpoints see: https://github.com/pelias/documentation Regarding |
@missinglink Thanks for your prompt insight and Sorry for not giving the use-case properly. My data source is only CSV Importer. And I am using a long geocode (9-12 digits) as a postcode in my CSV. So that, besides names I can find any location by its geocodes. So the |
Ugh so it seems like you're trying to use the I had a look at the code and the issue here is that the But regardless of that, the Try changing the column name to |
Unfortunately no luck. What I have done -
But there is no luck. It is also returning
Is the |
The |
Try |
That's Great...That's Awesome!!!! Just out of curiosity I want to know, is the category field indexed or it's returning time will be higher than general searches? One more thing, If I want to include more than one category can I separate others with a comma? Is there any |
Categories are unfortunately not well documented, you can use a comma to delimit multiple values, have a look at the
It is indexed and should have a negligible impact on performance, likely it will be faster because it's excluding bunch of results it doesn't have to score please keep in mind Pelias is not a relational database and it's not backed by one, so it's not like adding a column in SQL ;) |
@missinglink I am really sorry for re-opening the issue. Just one thing I wanted to know is Another thing though I asked that in gitter. If I update |
From this Discussion and this documentation I got to know that I am still searching for the second answer. I got some interesting findings probably know better than me. I am using the
It is changing the data. I can see the data using |
Use-cases
I am trying to import a CSV with postcode data. It will be great if I can search by
postcode
as a parameterAttempted Solutions
I made changes in the Pelias config file and add
postcode
in the coarse layer. but in search, I am unable to search with the value.Proposal
The request can be something like this
and even directly postcode can be searched
myurl/v1/search?text=12015
References
The text was updated successfully, but these errors were encountered: