Questions tagged [tire]

Tire is a Ruby client for the ElasticSearch search engine/database. It provides Ruby-like API for fluent communication with the ElasticSearch server and blends with ActiveModel classes for convenient usage in Rails applications.

Tire is a Ruby client for the ElasticSearch search engine/database. It provides Ruby-like API for fluent communication with the ElasticSearch server and blends with ActiveModel classes for convenient usage in Rails applications. It allows to delete and create indices, define mapping for them, supports the bulk API, and presents an easy-to-use DSL for constructing your queries. It has full ActiveRecord/ActiveModel compatibility, allowing you to index your models (incrementally upon saving, or in bulk), searching and paginating the results. Please check the documentation at http://karmi.github.com/tire/.

509 questions
0
votes
1 answer

"Tire bulk api" is taking more time than a river to finish indexing data

Previously I was using a jdbc river to index all the data from mysql to elasticsearch. Now I have shifted to the tire bulk api, as it gives me the freedom to manipulate the data before indexing it into elasticsearch. But the indexing process using…
mansk
  • 101
  • 2
  • 7
0
votes
2 answers

Elasticsearch : How to match non existant tags

Lets say I have a set of document which have a-z as keys. And I am firing this term query: curl -X GET localhost:9200/memphis/pincode/_search?pretty=json -d '{"query":{"term":{"a":"abcd", "b":"wxyz"}}}' This will return me all the documents for…
azi
  • 929
  • 1
  • 11
  • 31
0
votes
1 answer

Exclude indexed data in search results - elasticsearch (tire)

I'm trying to use elasticsearch via tire gem for a multi-tenant app. The app has many accounts with each account having many users. Now I would like to index the User based on account id. User Model: include Tire::Model::Search mapping do …
Vamsi Krishna
  • 3,742
  • 4
  • 20
  • 45
0
votes
1 answer

Can I generate tire+elasticsearch index locally , and push the index file to the server later?

it's consuming memory when generating index. Can I generate tire+elasticsearch index locally , and push the index file to the server later? Thanks
dexterdeng
  • 249
  • 3
  • 13
0
votes
1 answer

Building the right search request with gem Tire and ElasticSearch

I am trying to implement simple search request for my Flower Store, but as I am new to Tire and ElasticSearch, I cannot get how to do it. I have searchable model Product, and habtm models Category, Colour, Flower. What I want is checkboxes for each…
Yuri Sidorov
  • 329
  • 1
  • 2
  • 16
0
votes
1 answer

Tire equivalent to Thinking_Sphinx attributes in indexing

Is there anything in the tire gem similar to the attributes (has) of indexing in Thinking_Sphinx attributes Does the filters of tire serve the same purpose? Please help me in this issue.
Vamsi Krishna
  • 3,742
  • 4
  • 20
  • 45
0
votes
2 answers

Elasticsearch + Tire + attachment-mapper + Paperclip = No Hits

I'm trying to use ElasticSearch + Tire for full-text search in my app. Currently I have a model Entry that has_attached_file via Paperclip. I've installed and have running the latest version of ElasticSearch/Tire and also installed the…
Mundo Calderon
  • 183
  • 2
  • 10
0
votes
1 answer

Tire index per language?

I have the following Tire mappings on a Rails model: mapping do indexes :name, analyzer: 'arabic', boost: 10 indexes :city_name, analyzer: 'arabic', boost: 5 indexes :description, analyzer: 'arabic' end What is the best…
Bruno Antunes
  • 2,241
  • 4
  • 21
  • 35
0
votes
1 answer

How to convert elastic search JSON to Tire compatible query

I'm having trouble converting the following valid JSON query to elastic search into the ruby gem 'tire' equivalent. Any help is greatly appriciated... { "query" : { "term" : { "_all" : "coffee" } }, "filter" : { "or" :…
Kirk
  • 1,521
  • 14
  • 20
0
votes
1 answer

Elasticsearch requires*all* associations to be mapped?

I have one massive model (It basically is my entire app). I have 7 or more associations on this model, including many to many, :through => etc. This model also has a few simple attributes (title, url, and so on). The only thing I care about indexing…
Tallboy
  • 12,847
  • 13
  • 82
  • 173
0
votes
1 answer

How to remove _source from search results in Tire gem for elasticsearch

I'm indexing attachments in Elasticsearch (via Tire gem) and they're quite large. For whatever reason, and I wasn't expecting this, the search is dog slow. It appears to be because Tire (ES) is including the entire _source of the document in its…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
0
votes
2 answers

Tire gem: How to access Elasticsearch's 'highlight' property?

I have some Rails models that are indexed in Elasticsearch (via Tire gem). I can index new documents and query the existing index. What I can't seem to do is get ahold of the highlight attached to a record from within my Rails app. I can however…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
0
votes
3 answers

Tire (Elastic Search) Nil Comparison

For Tire (ElasticSearch wrapper gem), how do you query and filter out indexed records that has nil/null value for a certain attribute. For example, if I have this relationship class Article < ActiveRecord::Base belongs_to :topic end I have…
RubyFanatic
  • 2,241
  • 3
  • 22
  • 35
0
votes
1 answer

Mapping ElasticSearch GeoPoint Fields

We store documents that look something like this: { "id": "dQesbpxeQniUWXpsnjPQ", "title": "Golf in Hamburg, Altona", "user": "CtGjEaDxSrhPbf7W7NcH", "location": { "id": "Q6sZhRHdiS3mP2innbJ9", "name": "Hamburg,…
Lee Hambley
  • 6,270
  • 5
  • 49
  • 81
0
votes
2 answers

How to search age_from to age_to with a dob date time field in rails 3 app?

New to Tire and trying to figure out how to search a DOB ( Day Of birth ) column in my Profile model. Try to build a simple search where I can set the age_from and age_to ( say 20 to 60 ) How can I do this since I only have a dob field? Would it…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
1 2 3
33
34