-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a model Publication and a model Category in my Rails app. Both are connected with a has_and_belongs_to_many association.
Now I would like to search publications that match one or more categories. If more than one category is given they have all assigned to the publication. I want to specify…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I need to reaqlize search in product model with prices in different currencies (price and currecny_id field). Every currency have own rate.
When user search for product in price range [x, y] USD, range must be converted to all currencies and return values like
(price > from_eur AND price…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Imagine a code:
search = Project.search(
:title_or_description_or_child_name_or_child_age_or_inspiration_or_decorating_style_or_favorite_item_or_others_like_any => keys,
:galleries_id_like_any => @g,
:styles_id_like_any => @st,
:tags_like_any => @t
)
search.all returns the rows…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey all,
I'mt not too familiar with searchlogic plugin for rails (I did view the railscasts but wasn't helpful in relation to the specific code below). Can anyone briefly describe how it is being used in the three methods below? Thanks for any response.
def extract_order
@order_by = if params[:order]…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I am useing searchlogic to search some paintings. Each painting belong to a single category. What I would like to do is add multiple checkboxes to my search form, so that users can mark multiple categories. (joined with or) Is this possible with searchlogic? The query I am looking for is something…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm doing a Sphinx search but turning up some really weird results. Any help is appreciated.
So for example if I type "50", I get:
50 Cent
50 Lions
50 Foot Wave, etc.
This is great, but when I search "50 Ce", I get:
Ryczace Dwudziestki
Spisek
Bernhard Gal
Cowabunga Go-Go
And other crazy results…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I start to using cassandra and I want to index my db with sphinx.
I wrote ruby script which is used as xmlpipe, and I configure sphinx to use it.
source xmlsrc
{
type = xmlpipe2
xmlpipe_command = /usr/local/bin/ruby /home/httpd/html/app/script/sphinxpipe…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Below is my PHP function to call nearby points using Sphinx for MySQL. There are hundreds of thousands of nearby points which to what I can tell, are being indexed by Sphinx, but simply fails silently when searching with Sphinx. Other Sphinx queries I run against other indexes work completely fine…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I just installed Sphinx (distro: archlinux) downloading the source. Then I installed "Thinking Sphinx" plugin for Rails.
I followed the official page setup and this Screencast from Ryan Bates, but when I try to index the models it gives me this error:
$ rake thinking_sphinx:index
(in /home/benoror/Dropbox/Proyectos/cotizahoy)
Sphinx…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
from django.db import models
from djangosphinx.models import SphinxSearch
class MyModel(models.Model):
search = SphinxSearch() # optional: defaults to db_table
# If your index name does not match MyModel._meta.db_table
# Note: You can only generate automatic configurations from the ./manage…
>>> More