No commit activity in last 3 years
No release in over 3 years
Addition for Tire to work with suggester plugin for elasticsearch
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

~> 0.6.0
 Project Readme

Addition for Tire to work with suggester plugin for elasticsearch: https://github.com/spinscale/elasticsearch-suggest-plugin.

Now it's just build-it-fast-and-check-if-it-works version. Stay tune for updates.

Usage

Searching for suggestions

Tire.suggest('cars', field: 'name.suggest', term: 'au').suggestions
#=> ["audi", "audi 100", "audi 200", "audi 80", "audi 90", "audi a2", "audi a3", "audi a4", "audi a5", "audi a6"]

Searching by several indices

Tire.suggest ['cars', 'ads'] do
  field 'name'
  term 'bmw x'
end.suggestions
#=> ["bmw x3", "bmw x5"]