Open hale opened 12 years ago
Another solution for people who might also be in a similar situation:
Consider using both the IndexTank client gem and Tanker. I find the indexing features of Tanker most useful, so one option is to use Tanker for indexing and the IndexTank client gem for searching.
This is something that was suggested to me by Searchify.
I'd like to be able to only show results with a relevance above a certain threshhold.
Since we're doing some query expansion, the results set contains a lot of fuzz - documents which are only vaguely relevant. From reading the API docs it seems that the HTTP response body does include the relevance score of each result, which sounds perfect for this situation. However, as far as I can tell from the documentation Tanker doesn't support it.
Example
Relevant API Section
Possible solutions
Result
which extends the model and adds a new field calledrelevance
, which is fetched from the IndexTank response.results.index_tank_json
, as a fallback for situations where Tanker doesn't cover all the API's functionality.Let me know your thoughts, when I have some time I'd love to help work on this if you think it sounds sensible.