seperman / fast-autocomplete

Fast Autocomplete: When Elastcsearch suggestions are not fast and flexible enough
MIT License
272 stars 40 forks source link

The usage of context and full stop words #13

Open agravier opened 4 years ago

agravier commented 4 years ago

Thank you for this nice package. I have been exploring it as a pure-Python solution for some small autocomplete feature in a service I am developing, and I guess that returning or otherwise making use of the context dictionary is probably one of the missing pieces that would make it more useful to my team. Well, I am not totally sure because I don't get yet how the context and full-stop words work.

From the readme, I figured that the documentation for that feature was lacking at the time you initially released the package:

You might be wondering why things are in this format. It is to save space when this json can become very big easily and the keys become repetitive. That's why we are using a list with predefined order of keys. For your use case for now you can leave the context and display values as None if you want. We will opensource other factory functions soon that will fully utilize those keys in the context.

Do you have new documentation? I'm looking for how to use:

I think that's better to release the doc that you have now if anything, even a draft or some notes. I could help you make it into a final piece, if you want.

seperman commented 4 years ago

Hi @agravier Good idea. Let me look into it. There are pieces that I need to open source and then the whole context dict will make more sense.

prem6667 commented 4 years ago

any update on this? how to give preference to context while searching