Questions tagged [thinking-sphinx]

Thinking Sphinx is a Ruby library that connects ActiveRecord models to the Sphinx search service.

Thinking Sphinx is a Ruby library that connects ActiveRecord models to the Sphinx search service.

Sphinx is a very fast search engine that indexes data and provides flexible ways of searching it. Thinking Sphinx allows you to link up your models into Sphinx simply and painlessly, and provides an interpretation of search results into ActiveRecord model instances.

875 questions
0
votes
0 answers

Alternate bootstrap table row coloring doesn't work

I'm trying to color some rows in a rails table based on a single attribute. I'm only specifying that so people don't get confused, thinking I'm trying to alternate the colors in my table. That's not the goal. Thing is, it worked 20 minutes ago,…
Brad Rice
  • 1,334
  • 2
  • 17
  • 36
0
votes
1 answer

How to organize range search in sphinx

I have two range fields in a form. Min and max fields. = form_tag search_items_path, :method => :get do %label = t('form.price') = text_field_tag :min_price, params[:min_price] = text_field_tag :max_price, params[:max_price] =…
Stack Stack
  • 147
  • 1
  • 1
  • 11
0
votes
1 answer

Installing Sphinx on Railsinstaller

I used railsinstaller to install rails into OS Windows. To work with project I use Aptana. And I want to use gem "thinking-sphinx", "~> 2.0.13" into my project. When I started indexes - rake thinking_sphinx:index - I have a mistake Sphinx cannot be…
0
votes
1 answer

ThinkinSphinx query not working with sphinx_select with four conditions

I'm trying to use ThinkingSphinx to return records that have a start date within a range OR an end date within the same range, basically any record that starts or ends within this range. To do this, I am using a computed attribute and sphinx_select…
Ruy Diaz
  • 3,084
  • 24
  • 36
0
votes
1 answer

Check calculated ranking for Sphinx results?

Is there any way to calculate ranking/relevance of documents returned while querying using ThinkingSphinx? I have weighted fields and I know that one can use :match_mode=>:extended and :order=>"@relevance desc" but is there any way the calculated…
atmaish
  • 2,495
  • 3
  • 22
  • 25
0
votes
2 answers

Sphinx: Can one update the limit for SQL query size used for indexing?

I seem to have hit a certain Sphinx head case. I'm indexing a certain table, which will produce ≈ 140 indexed fields per record (trust me, they are all important). For 27 * 3 of them, the sub-query which produces it is in itself already quite big.…
ChuckE
  • 5,610
  • 4
  • 31
  • 59
0
votes
1 answer

How do I filter / exclude subclasses from Thinking Sphinx results?

I have a (Rails) Object with subclasses, but when I use Thinking Sphinx I only want to search that parent object, and exclude searching the subclasses. I'm using the typical STI setup for Rails, with the :type column defined on the parent Object.
beeudoublez
  • 1,222
  • 1
  • 12
  • 27
0
votes
1 answer

Thinking sphinx - exclude classes if field isn't present in index

I'm doing an application search that might filter on several different fields - some of which are not present in every index. At the moment sorting out the correct classes to search on in the controller, using a complicated if elsif elsif thing. Is…
Edward
  • 3,429
  • 2
  • 27
  • 43
0
votes
2 answers

Advice with Full Text Search Engine in Rails

I am trying to add to my website a search bar like the one on Facebook. I want my users to be able to search through my products, my other users ... But I also want the result to be displayed in real time without pressing a button. I am currently…
0
votes
3 answers

Setting up thinking sphinx after server reboot (Rails project)

Problem: I am trying to get sphinx running again after server reboot. There seems to be no sphinx.conf file when I try to start it running: >searchd Sphinx 2.0.4-release (r3135) Copyright (c) 2001-2012, Andrew Aksyonoff Copyright (c) 2008-2012,…
Alan DeLonga
  • 454
  • 1
  • 10
  • 27
0
votes
1 answer

Does Sphinx provide the capability to extract indexed information rather than hitting the database?

On a successful search will one be able to access the sphinx indexed data instead of hitting the database. Thinking Sphinx provides the a method to search and retrieve only the document ids through ThinkingSphinx.search_by_ids. Does it provide an…
0
votes
0 answers

Padrino app not aware of its own root path

I have a Padrino app which doesn't seem to be aware of its own root path. The app works fine, but when I try to require a file I wrote and put into the models folder, it says it cannot find it. The file is required from within another file in the…
kakubei
  • 5,321
  • 4
  • 44
  • 66
0
votes
1 answer

2 fields in thinking_sphinx search

I have two fields that I am passing into thinking_sphinx, one is a dropdown, the other a free text. <%= select :search, params[:search], Category.joins(:posts).select('distinct categories.*').collect {|category| […
Gabe M
  • 515
  • 1
  • 6
  • 18
0
votes
1 answer

ThinkingSphinx: filter on a boolean column of an association

I see no reason why this shouldn't work, but I get no results. A Contact has many OrganizationContacts. And OrganizationContact has a boolean field primary. I've added a filter on this field as shown below. class Contact < ActiveRecord::Base …
Samo
  • 8,202
  • 13
  • 58
  • 95
0
votes
1 answer

accepts_nested_attributes_for for STI Model

Here is my current model structure class Customer < ActiveRecord::Base self.inheritance_column = 'customer_type' has_one :contact accepts_nested_attributes_for :contact end class Vendor < Customer has_many :domains …
Addy
  • 1,817
  • 2
  • 18
  • 23