{"action":"created","issue":{"url":"https://api.github.com/repos/inonit/drf-haystack/issues/70","repository_url":"https://api.github.com/repos/inonit/drf-haystack","labels_url":"https://api.github.com/repos/inonit/drf-haystack/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/inonit/drf-haystack/issues/70/comments","events_url":"https://api.github.com/repos/inonit/drf-haystack/issues/70/events","html_url":"https://github.com/inonit/drf-haystack/issues/70","id":166578141,"number":70,"title":"Inaccurate Search Result","user":{"login":"alaminopu","id":1296554,"avatar_url":"https://avatars.githubusercontent.com/u/1296554?v=3","gravatar_id":"","url":"https://api.github.com/users/alaminopu","html_url":"https://github.com/alaminopu","followers_url":"https://api.github.com/users/alaminopu/followers","following_url":"https://api.github.com/users/alaminopu/following{/other_user}","gists_url":"https://api.github.com/users/alaminopu/gists{/gist_id}","starred_url":"https://api.github.com/users/alaminopu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alaminopu/subscriptions","organizations_url":"https://api.github.com/users/alaminopu/orgs","repos_url":"https://api.github.com/users/alaminopu/repos","events_url":"https://api.github.com/users/alaminopu/events{/privacy}","received_events_url":"https://api.github.com/users/alaminopu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-20T13:14:27Z","updated_at":"2016-07-21T09:59:59Z","closed_at":null,"body":"Autocomplete Search Result is not accurate when searching with full text.  If I search for \"Fayez\", it shouldn't show other result. But its okay when I start typing two letter like \"Fa\". \r\n\r\n![drf-haystack](https://cloud.githubusercontent.com/assets/1296554/16987371/9f319ace-4ead-11e6-9c9c-9eab023f35d6.png)\r\n\r\n\r\nHow can I fix this issue? "},"comment":{"url":"https://api.github.com/repos/inonit/drf-haystack/issues/comments/234210242","html_url":"https://github.com/inonit/drf-haystack/issues/70#issuecomment-234210242","issue_url":"https://api.github.com/repos/inonit/drf-haystack/issues/70","id":234210242,"user":{"login":"alaminopu","id":1296554,"avatar_url":"https://avatars.githubusercontent.com/u/1296554?v=3","gravatar_id":"","url":"https://api.github.com/users/alaminopu","html_url":"https://github.com/alaminopu","followers_url":"https://api.github.com/users/alaminopu/followers","following_url":"https://api.github.com/users/alaminopu/following{/other_user}","gists_url":"https://api.github.com/users/alaminopu/gists{/gist_id}","starred_url":"https://api.github.com/users/alaminopu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alaminopu/subscriptions","organizations_url":"https://api.github.com/users/alaminopu/orgs","repos_url":"https://api.github.com/users/alaminopu/repos","events_url":"https://api.github.com/users/alaminopu/events{/privacy}","received_events_url":"https://api.github.com/users/alaminopu/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T09:59:59Z","updated_at":"2016-07-21T09:59:59Z","body":"I have tested the package.  It is working now for exact match, but not working for partial match. I didn't modify the ES_BACKEND_SETTINGS. Look like default should work fine.  Here is my Indexing source code. \r\n\r\n```python\r\nclass ProjectIndex(indexes.SearchIndex, indexes.Indexable):\r\n    text = indexes.CharField(document=True, use_template=True)\r\n    id = indexes.CharField(model_attr=\"pk\")\r\n    title = indexes.CharField(model_attr=\"title\")\r\n    autocomplete = AutocompleteEdgeNgramField()\r\n\r\n    @staticmethod\r\n    def prepare_autocomplete(obj):\r\n        seq = (u\"{}\".format(obj.title),)\r\n        return ''.join(seq)\r\n\r\n    def get_model(self):\r\n        return Project\r\n\r\n    def index_queryset(self, using=None):\r\n        return self.get_model().objects.all()\r\n```\r\n\r\nSo when I start typing \"Java\", Its not showing result for \"Ja\" or \"Jav\". Only return result for \"Java\". "}}
{"actor":{"display_login":"alaminopu"}}