SOLR searching issue in RAILS

26 views
Skip to first unread message

Luis Arencibia

unread,
Apr 30, 2013, 12:09:21 PM4/30/13
to ruby-s...@googlegroups.com

We have a solr search implemented. We are encountering a situation and wish to tackle it as cleanly as possible. We have a book that has an isbn number and it has a relation of isbn numbers in different bindings. When we perform a solr search we would like the first instance of that book to show up and none of its related instances. In other words show the first occurrence in the search based on the relation and its own isbn number. I know that sounds confusing but let me elaborate.

If I search for books and I get one that has a main isbn = 9781617840227 and related isbns = "9781617147197", "1617147192". I do not want "9781617147197", "1617147192" to display only 9781617840227.

I have thought about doing a double search (which will not work due to paging) and also not displaying duplicated but will break paging.

Any help is greatly appreciated,

Mark Weston

unread,
May 3, 2013, 12:53:04 PM5/3/13
to ruby-s...@googlegroups.com
Hi Luis,

Is each binding of a Book a different record in the database?  Or is this one Book record with multiple ISBNs for the different bindings?

If you don't want a search to hit on a related ISBN is there a reason for indexing the the related ISBN codes?

Seeing some of the model and search code might help here.

Mark

--
You received this message because you are subscribed to the Google Groups "Sunspot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-sunspot...@googlegroups.com.
To post to this group, send email to ruby-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/ruby-sunspot?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages