eregs / regulations-core

An engine that supplies the API that allows users to read regulations and their various layers.
Creative Commons Zero v1.0 Universal
16 stars 27 forks source link

Search always returns "no results" #60

Closed eadamsatx closed 7 years ago

eadamsatx commented 7 years ago

Whether using elasticsearch (was able to get a successful import on 12 CFR 1008) or haystack/solr for storage, search always seems to return "not found." Am I missing something obvious?

cmc333333 commented 7 years ago

Hi again @eadamsatx. One potential solution:

python manage.py rebuild_index

We don't have haystack configured to incrementally build the index (as we dump a bunch of documents in at once).

Regarding Elastic, what version are you currently running? It's possible that all the query code was written for an outdated version of Elastic, in which case we should just chuck it and make our lives easier with haystack.

cmc333333 commented 7 years ago

Hey @eadamsatx did rebuild_index work?

eadamsatx commented 7 years ago

Well, not initially, but after I did the build_solr_schema, dropped the schema.xml in the right place and ran rebuild_index, I did get it to work. Thanks.