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
1 answer

Searchkick, emulti condition in a query

I use searchkick for geoloc and it work fine, the problem is my query return me all users in the perimeter including the user who do the request. So for the moment I have res = User.search "*", where: {location: {near: …
agonist_
  • 4,890
  • 6
  • 32
  • 55
0
votes
1 answer

Searchkick (elasticsearch) several queries at once

Currently working with the Searchkick gem and trying to figure out how to search with multiple queries at the same time. I want the search queries to be pre-defined using a select (drop down). My controller looks like this currently: def index …
user2755537
  • 151
  • 1
  • 9
-1
votes
1 answer

SQL: Group data without using GROUP BY

Hello fellow engineers! I have encountered an interesting task to which I have so far not found a solution. Maybe a Collective Mind will be able to solve it? :) So, we've got three bookstores, they sell books. One sells them well and generates an…
Dan S.
  • 158
  • 2
  • 11
-1
votes
1 answer

searchkick 400 Searchkick::InvalidQueryError for suggestions

Someone is having this kind of problem with searchkick? I did something wrong? article.rb searchkick suggest: [:status] scope :search_import, -> { includes(:author, :medium, :tags) } has_many :article_tags has_many :tags, through:…
user8640638
-1
votes
1 answer

How do I implement associations in searchkick

First, the example I read in the docs shows to declare the associated model as singular, :address, but if I do I get the error Association named 'address' was not found on User; If I change it to plural :addresses, then the next problem I have is…
Mices
  • 89
  • 3
  • 9
-1
votes
2 answers

Aggregation on Many to many relations activerecord

I want to make ES aggregation on many to many activerecord model on rails but no way My model : class Foo < ApplicationRecord searchkick def search_data { bar: bar } end has_many :bars end I have tried many solution but…
ramzieus
  • 138
  • 11
-1
votes
1 answer

Rails4 - how to customize the indexed data while indexing in Elastic Search using SearchKick

i have recently started using ElasticSearch along with searchkick gem to index my db data.By default, searchkick gem will index all columns of a model but i want to index only active items(like posts which are published).For example - #####in…
-1
votes
1 answer

ROR search for with searchkick is not working

I've been working on a web page project in which people post and search for offers. I'm truly new to this and I've been researching about how to make a simple search form. I'm currently working with searchkick gem and i've follow lot of tutorial,…
-2
votes
2 answers

I have a question with my discord bot Kick system

I need to make that not everyone can kick members, but only who have permissions Here is my kick system- client.on('message', message => { if (!message.guild) return; if (message.content.startsWith('+kick')) { const user =…
Almis
  • 13
  • 1
-2
votes
1 answer

How to allow a user to click on a search icon in order to run his search query using elasticsearch/searchkick?

I was able to get a basic search field working perfectly on my navbar using elasticsearch/searchkick. At the moment, the only way a query can be executed is if a user types and then presses Enter on his or her keyboard. However, I would like to also…
Omar
  • 383
  • 3
  • 17
-2
votes
1 answer

Speed up a query in Rails

I'm working on a Rails app that can have 20-30k records for a single query that will render on a page. I'd appreciate some feedback on this query thanks! The Controller def index if params[:advertiser].blank? @products = Product.all else …
1 2 3
32
33