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
29
votes
3 answers

How to fix this in error rails "warning: 299 Elasticsearch built-in security features are not enabled. Without authentication, your cluster could..."

I have a Rails app that uses Searchkick and after updating my gems and yarn, I'm getting this Elasticsearch warning" warning: 299 Elasticsearch-7.13.1-9a7758028e4ea59bcab41c12004603c5a7dd84a9 "Elasticsearch built-in security features are not…
Lee McAlilly
  • 9,084
  • 12
  • 60
  • 94
17
votes
3 answers

Elasticsearch::UnsupportedProductError (The client noticed that the server is not a supported distribution of Elasticsearch

Getting this error when using searchkick with elasticsearch on mac. Searchkick version: searchkick (4.5.2) $ elasticsearch --version warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future…
Siddhant
  • 687
  • 1
  • 8
  • 15
14
votes
2 answers

Ruby on Rails - searchkick gem : cluster_block_exception - FORBIDDEN/12/index read-only / allow delete (api) - status":403

I'm trying to add elasticsearch to my Ruby on Rails website using searchkick gem. The OS I'm currently using is Ubuntu 16.04 TLS. I installed elasticsearch 6.2.2 and, so far, the default configurations unchanged. When I run curl -X GET…
TamerB
  • 1,401
  • 1
  • 12
  • 27
13
votes
4 answers

Searchkick manually remove specific record Index

How I can manually remove specific record Index using Searchkick. There is option to reindex the specific record but i didnt find any option to delete a record index. product = Product.find 10 product.reindex
kashif
  • 1,097
  • 4
  • 17
  • 32
11
votes
3 answers

Text fields are not optimised for operations that require per-document field data

Having switched from Elasticsearch to Opensearch, my application now fails to run a simple query with: "Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are…
knirirr
  • 1,860
  • 4
  • 23
  • 37
10
votes
2 answers

FORBIDDEN/12/index read-only / allow delete (api) problem

When importing items into my Rails app I keep getting the above error being raised by SearchKick on behalf of Elasticsearch. I'm running Elasticsearch in a Docker. I start my app by running docker-compose up. I've tried running the command…
rctneil
  • 7,016
  • 10
  • 40
  • 83
10
votes
2 answers

Searchkick index is empty after reindexing from model

When I try to reindex records from inside a model it ends up setting an empty index on elasticsearch server. So, I have a Course model which has many Instructors. Now, I have this callback method inside instructor.rb model which tries to reindex…
Abhinay
  • 1,796
  • 4
  • 28
  • 52
10
votes
2 answers

How to do complex querying with logical operations by using searchkick

Iam using searchkick library as an elasticsearch client for Product searching. https://github.com/ankane/searchkick It is possible to create 'OR' condition and 'AND' condition; AND operation Product.search where: {price: {lte: 200}, in_stock: true}…
9
votes
1 answer

Rails4 production elasticsearch error - failed to find geo_point, but works in Development

i have a fine running Rails 4 app using elastic search and searchkick.I have a geosearch by setting up geo_point and it works great in dev, but after deploying the same code and verifying the indices in production, on Digital Ocean with 3GB RAM and…
Milind
  • 4,535
  • 2
  • 26
  • 58
9
votes
1 answer

searchkick index related model fields

I have a rails application and I'm switching from Sphinx to ElasticSearch and using the gem searchkick. I have a model Teacher and a model Tags (via a gem), where a Teacher can have multiple tags associated. In the Teacher model I've defined the…
8
votes
1 answer

Searchkick boost exact matches

I have 15,000 courses and I would like to boost the title of each class so exact matches of a class are boosted above everything else. When I do Course.seach_kick('theory of interest' , 1) The correct search is returned with the course 'theory of…
srm
  • 655
  • 1
  • 8
  • 21
6
votes
1 answer

How to enforce eager loading of associations when importing records using Searchkick with Rails4?

For this setup with default (unspecified) search_data: class Item < ActiveRecord::Base searchkick has_many :quantities, dependent: :destroy scope :search_import, -> { includes(:quantities) } end When importing all database records by running…
Streamline
  • 2,040
  • 4
  • 37
  • 56
6
votes
1 answer

Searchkick parallel update wait not completing

I've set up parallel re-indexing of an index. Product.reindex(async: {wait: true}) I am running that code in a DelayedJob and waiting since it seems the alternative would be to periodically check on completion status and then promote the new index…
Ben
  • 15,010
  • 11
  • 58
  • 90
6
votes
1 answer

Elasticsearch issue: Cannot connect AWS elasticsearch service

I have a issue about configure elasticsearch to connect AWS elasticsearch service to run project in production. My Gemfile: gem 'searchkick' gem 'faraday_middleware-aws-signers-v4' gem 'aws-sdk', '~> 2' gem "elasticsearch", ">=…
6
votes
3 answers

Searchkick results are not relevant

I have a problem with a relevant search. Results of following request are very strange: Candidate.search('martin', fields: [:first_name, :last_name], match: :word_start, misspellings: false).map(&:name) ["Kautzer…
rkotov93
  • 181
  • 1
  • 1
  • 10
1
2 3
32 33