Questions tagged [searchkick]

Searchkick learns what your users are looking for. As more people search, it gets smarter and the results get better.

Searchkick learns what your users are looking for. As more people search, it gets smarter and the results get better. It’s friendly for developers - and magical for your users.

Searchkick handles:

  • stemming - tomatoes matches tomato
  • special characters - jalapeno matches jalapeño
  • extra whitespace - dishwasher matches dish washer
  • misspellings - zuchini matches zucchini
  • custom synonyms - qtip matches cotton swab

Plus:

  • query like SQL - no need to learn a new query language
  • reindex without downtime
  • easily personalize results for each user
  • autocomplete
  • “Did you mean” suggestions
  • works with ActiveRecord, Mongoid, and NoBrainer

https://github.com/ankane/searchkick

492 questions
0
votes
2 answers

Boost exact match searchkick / elastic search Rails 4

Having trouble getting exact matches to display first. I am using searchkick with elastic search on my rails 4 app. For example, if a user searches "coke" .. "coke zero" will display first. I would like it the other way around. If there is…
Kathan
  • 1,428
  • 2
  • 15
  • 31
0
votes
1 answer

Searchkick Multiple Model Query

I'm trying to run a query to find all items in a given location. I have an Item.rb & Location.rb models where searchkick is present. In my items controller I have the following logic: if params[:item_name].present? @items =…
user516541
0
votes
1 answer

Twitter Typeahed 0.11.1 only showing one result

I'm trying to use searchkick to find a person in my database. When the user selects the person from the drop down list, it puts the id of the person in the hidden field and that is the value that gets submitted. That part works fine (mostly). The…
agustaf
  • 683
  • 1
  • 6
  • 19
0
votes
1 answer

Building a dynamic SearchKick query throws syntax error

If I run this query: self.send("search", where: {geo_location: { near:[ params[:latitude], params[:longitude] ]}}, boost_by: {luxury_shopper: {factor: 80}} && {movie_goer: {factor: 20}}) everything works great and I get my result. But if I run this…
Arel
  • 3,888
  • 6
  • 37
  • 91
0
votes
3 answers

Building a dynamic query with separate hashes

Ok, I've been trying to figure out how to approach this all morning. Let's say you have a hash that looks like this: {"luxury_shopper"=>"10", "movie_goer"=>"80"} and you want to build a query that looks like this: Observation.search("something",…
Arel
  • 3,888
  • 6
  • 37
  • 91
0
votes
0 answers

How to make routing for search form

I use searchkick for searching. Form search will be in path /products. After submitting the search, I want to see the results in the path, something like this: "?utf8=✓&search%5Bmeta_sort%5D=orders_count.desc&search%5Bt" How do i build a form which…
0
votes
2 answers

Redirect to path if no results found Elasticsearch

Using elasticsearch with searchkick on rails 4 app. Trying to redirect to a certain path if no search results found. I recently switched from solr and sunspot over to elasticsearch so still getting familiar with elastic. I tried using my old code…
0
votes
1 answer

Optimizing Searchkick in Rails 4

I'm using ES and Searchkick gem to handle searches in my Rails app. I'm currently doing: class Paper < ActiveRecord::Base belongs_to :report belongs_to :user before_destroy :delete_dependant_papers searchkick word_start:…
Swaathi Kakarla
  • 2,227
  • 1
  • 19
  • 27
0
votes
2 answers

search filter using searchkick

I'm using searchkick in my rails app. When user types letters of the name he wants to find into form, I get it with params[:query]. The fields' names are (name, login, passwd). The result of searching returns in table. Something like…
Gleb
  • 13
  • 5
0
votes
1 answer

Getting to know the field on which query was hit

Using Elasticsearch through Searchkick. My documents look something like this: { "_id" : ObjectId("54f8672f258f83ac4e7783e5"), "n" : "Figth Club", "dst" : "video", "detail" : { est: "El club de la lucha", ent: "Figth…
borjagvo
  • 1,802
  • 2
  • 20
  • 35
0
votes
3 answers

searchkick advanced search not working

class Product < ActiveRecord::Base belongs_to :city has_and_belongs_to_many :categories before_destroy { categories.clear } searchkick locations: ["location"] def search_data { istatus: i_status, name: name, price:…
Jamil Khan
  • 83
  • 1
  • 7
0
votes
1 answer

How do I Upgrade Elasticsearch to the latest version

I try to run a search on my rails project and I get this error Searchkick::UnsupportedVersionError and This version of Searchkick requires Elasticsearch 1.0 or greater I have checked all over Stackoverflow and no one seems to have this answer. Any…
Alezandah
  • 31
  • 4
0
votes
2 answers

Search statistics on Searchkick

I have a project on rais with searchkick and I was trying to find out if there is a way to get what people are searching the most on my site. Is this possible with searchkick and elasticsearch?
Adrian Matteo
  • 987
  • 1
  • 10
  • 28
0
votes
1 answer

ElasticSearch rails : order results by object's associated data

I have implemented Searchkick in a rails app and it is working fine. I want to order my results based on the number of associated objects. For Eg. If I am searching for users by their name, then I want to order the results by the number of…
Siddhant
  • 293
  • 1
  • 3
  • 8
0
votes
0 answers

Elasticsearch needs to page reload

My question is quite simple actually I followed the tutorial here, and I made a dictionary sample. so after found the word with "searchkick" I click "clear" button and all javascript in the page disappears like this. Thank you very much
1 2 3
32
33