I need to find the substring values ββin the model field. I have an Index and SearchQuerySet.
This is an Elasticsearch configuration.
HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', 'URL': 'http://127.0.0.1:9200/', 'INDEX_NAME': 'haystack', }, }
My index.
class ElementIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True)
My custom search.
SearchQuerySet().filter(title_element=clean_value)
I have the value "HolaMundoTest" in my database, and if I try to search for "Hola" or "HolaM", I will find the result, but if I try "Mundo" or "mundo" or "laMun", there are no matches.
What's wrong? I do not understand.
source http://django-haystack.readthedocs.org/en/v2.1.0/autocomplete.html
I use:
- -django 1.5.1
- -django-stack == 2.1.0
- -elasticsearch-0.90.5
- -pyelasticsearch == 0.6
Thank you for your responses -
source share