Skip to content
Madhav Sharan edited this page May 26, 2016 · 3 revisions

Configuring max search results.

Khooshe clusters are computed on geo results of top "MAX_SEARCH_RESULT" results. Configure it here - https://github.com/MBoustani/GeoParser/blob/1908545f0a005d8d302b4c61919b6beb8304362c/geoparser_app/views.py#L48

Delete configured index from geoparser

Use delete_core.py to soft delete a configured index from geoparser.
python delete_core.py [domain] [path to indexed path]

Example -
python delete_core.py test http://host:port/core

Add newly added fields in older version of geoparser

In case there is older version of geoparser and after updating code it's missing new configuration they can be updated using below update command.

curl "http://localhost:8983/solr/admin/update/json?commit=true" -H 'Content-type:application/json' -d '

{
"add": {
  "doc": {
    "id": "test",
    "username" : {"set":["username1"]},
    "password" : ["password1"]
  }
}
}
'

Field name and type can be seen in solr_admin.py