-
Notifications
You must be signed in to change notification settings - Fork 38
Getting empty results #17
Comments
Seems like you don't have an ElasticSearch Serializer class and the model signal to handle this. Could you verify you have both ES serializers and the appropriate signals hooked to the correct models? |
@sshum00, Thanks, it is working. |
hello @sshum00, how to achieve request based ordering ? Currently I have tried below request: http://localhost:8000/app/api/Search?es_ordering=-modified_at&limit=10&offset=10&page=1&search=some View.py
|
If you want the request to allow it to modify the ordering modify the variable This is untested but if you're willing to go through this:
You could do something like this for the least amount of work. Though I can't guarantee if it'll work as I haven't tested it. |
@sshum00, I have tried above solution. Getting below error: RequestError: TransportError(400, u'search_phase_execution_exception', u'Fielddata is disabled on text fields by default. Set fielddata=true on [subject] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory.') view.py
|
Without knowing more about your system it would be hard to tell what went wrong with this. It doesn't appear to be specific to the newly added code. The most obvious thing to look for I suppose is: do you have enough memory? |
@sshum00, I need to achieve Please refer below links https://stackoverflow.com/questions/38145991/how-to-set-fielddata-true-in-kibana I have tried this solution but not working. |
@sshum00, I got solution for above problem. I was trying sort on fields, so It worked but now I am facing issue with es_filter_fields view.py
search_indexes.py
Which is not filtering based on title_filing |
That field does not appear to be part of your serializer. |
@myarik, I am new to elastic search.
I followed documentation.
curl 'localhost:9200/_cat/indices?v'
notes index has doc.count = 0 which is wrong.(Pls correct me)
Notes model has 17 records.
View.py
search_indexes.py
curl http://localhost:8000/app/api/Search?search=milk
Configuration
The text was updated successfully, but these errors were encountered: