Has anyone worked with the FIAS address base? So here we are, we uploaded this database into the SOLR collection. in short, it has the format:

ID | тип | название объекта 

In one collection are all objects, ranging from the area to the street. For example, the address: Arkhangelsk Region, Arkhangelsk, Lomonosov St. looks like this:

 294277aa-e25d-428c-95ad-46719c4ddb44 | обл | Архангельская 06814fb6-0dc3-4bec-ba20-11f894a0faf5 | г | Архангельск 5d5ef54d-e11e-41f0-bc36-42d22467019e | п-кт | Ломоносова 

That's the question, how to search for full addresses in the table? not just "Arkhangelsk" but the full line: Arkhangelsk region, Arkhangelsk, Lomonosov st? I clean the line from primenany and stop words

How can I search for this location in the table? can solr have some sort of trick?

  • In FIAS, to build a complete address, parentguid , previd , nextid must be considered. parentguid - is used just to understand that a street, for example, belongs to a certain city, and a city to a certain region, and previd , nextid to understand how this address object is relevant and whether it is necessary to use its next version - Denis Startsev
  • it's all clear. maybe I'm not looking rightly in solr? I'm looking for the whole line at once q = * Full address *. and then what I found from this is blinding the result - Alex Lizenberg
  • may need to break something? although how can it be properly divided in different ways can be introduced - Alex Lizenberg
  • Honestly, I didn’t work with SOLR, but I did it on sphinx, that is, the final collection for the index looked like this: randomId, regionId, cityId, streetId, address, that is , 1244353, 294277aa-e25d-428c 95ad-46719c4ddb44, 06814fb6-0dc3-4bec-ba20-11f894a0faf5, 5d5ef54d-e11e-41f0-bc36-42d22467019e, Arkhangelsk Arkhangelsk Lomonosov Search respectively passed through the address field, and from the record found already stretched id components - Denis Startsev
  • Ie, you still need to create a separate collection to search with the full address so to speak. - Alex Lizenberg

0