Tagged Questions
0
votes
1answer
17 views
Using facets with missing filters in ElasticSearch and Tire
I am trying to use facets with a search query that includes a missing filter and it does not seem to take into account the records that will be filtered away with the missing filter.
In the Rails ...
1
vote
1answer
20 views
Elasticsearch + Tire + PaperClip : Nested objects
I start implementing ElasticSearch in place of a old home-made search engine. I migrate the major part of the code, but I have to render a url provided by paperclip, and I cannot have the right object ...
0
votes
1answer
38 views
Tire searching does not ignore accents
I have setup elastic search and tire for searching.
I have the following settings on my model:
tire.settings :analysis => {
:analyzer => {
:spanish_snowball => {
:type ...
1
vote
1answer
58 views
how to use Tire for getting data from Elasticsearch index and without hitting database
I am using Tire for implementing Elasticsearch. My environment is Linux,Rails 3.2 with Ruby 1.9.3.
I am able to index using Elasticsearch with the help of gem Tire(0.5.8).
But now to improve ...
0
votes
1answer
24 views
Manage Rails model classes across repositories
My project has the following setup. I have two repositories (seprate projects):
one that generates my model classes (Ruby)
one that works with my model classes (Rails)
The first one writes the ...
0
votes
1answer
19 views
How to write Tire query where an association_id is nil or certain value?
I have a Lesson model that belongs_to Account.
Public lessons have a nil account_id.
Private lessons have a value in account_id.
How do I write a search for Lesson for some search term present in ...
1
vote
1answer
30 views
Set an attribute type without setting _type in ElasticSearch with Tire
The document I want to index has a property with name type. When I use tire to store it, for instance:
Tire.index 'mydocuments' do
delete
create
store :name => name, :type => 'pdf'
...
2
votes
2answers
85 views
checking environment tire.rb file
This is my config/initializers/tire.rb file:
if Rails.env.production?
Tire.configure do
url "http://remoteserver.com:9200"
end
end
If I try on my production server:
bundle exec rake ...
0
votes
1answer
57 views
How to get image.url from ElasticSearch model indexed
Does anybody know how can i get a image.url from a image indexed in elasticsearcg (using tire) ?
class Photo < ActiveRecord::Base
include Tire::Model::Search
include Tire::Model::Callbacks
...
1
vote
1answer
81 views
How do I ask Tire to return only if score more than 1 for elasticsearch
I'm trying to return only documents that have _score more than 1. I'm not sure how to do that. I could get all the returned documents and check again individually in ruby code, but I guess it could be ...
0
votes
2answers
193 views
error tire elastic search if I write “:” colon character
This is my tire setting:
def self.search(params)
tire.search(load: true, page: params[:page], per_page: 9) do
query do
boolean do
must { string params[:query], ...
1
vote
2answers
167 views
How do I reindex just one element with Tire and elasticsearch?
I can't seem to figure out how to edit indexed element. Google doesn't give me an answer either. So, I'm not sure if it's possible at all? What I have done before is just to reindex the whole thing, ...
1
vote
2answers
95 views
What should I do when the bonsai server is down?
I am using ElasticSearch with Tire and host my app on Heroku.
Last night, when the bonsai server was down, my whole app crashed.
When I tried to deploy the app to Heroku, Tire tried to connect and ...
0
votes
0answers
37 views
Deleting parent in parent/child relationship Elasticsearch and Tire
How does deleting a parent document in Elasticsearch works when using the Tire gem in Rails? How do you also delete the children?
0
votes
0answers
165 views
Parent child relationship in Elasticsearch
I have big problems understanding how to map and search for associated objects in Elasticsearch using the Tire gem. For instance I want a parent child relationship, how do I do that? I can't find a ...