5👍
I’ve replied to your various questions as inline responses.
but when searched python flask it results in nothing. I want 2nd and
3rd result again, as there is python keyword.
You want to change the haystack operator from AND
to OR
. See http://django-haystack.readthedocs.org/en/v2.1.0/settings.html#haystack-default-operator for more information.
when searched boot no result, but it should show 1st result, it has
boot in bootstrap word.
Look at NgramField
and EdgeNgramField
for partial matching.
when searched pyton again no result, but it should show 2nd and 3rd
result, since it only 1 char h missing from python.
Look at haystack’s spelling suggestions: http://django-haystack.readthedocs.org/en/latest/searchqueryset_api.html#spelling-suggestion
when searched bootstrap django again no result, but it should show 1st
and 2nd result.
This is configured by the haystack operator.
An example configuration for Haystack 2.0+ with default operator set to OR
and INCLUDE_SPELLING=True
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
'URL': 'http://localhost:9001/solr/default',
'INCLUDE_SPELLING': True,
},
}
HAYSTACK_DEFAULT_OPERATOR = 'OR'