faceted-search

What differs between post-filter and global aggregation for faceted search?

℡╲_俬逩灬. 提交于 2019-12-03 16:13:59
A common problem in search interfaces is that you want to return a selection of results, but might want to return information about all documents. (e.g. I want to see all red shirts, but want to know what other colors are available). This is sometimes referred to as "faceted results", or "faceted navigation". the example from the Elasticsearch reference is quite clear in explaining why / how, so I've used this as a base for this question. Summary / Question: It looks like I can use both a post-filter or a global aggregation for this. They both seem to provide the exact same functionality in a

Date range facets with Sunspot in Ruby on Rails

霸气de小男生 提交于 2019-12-03 08:26:38
I am using Sunspot to search for events (parties, concerts, ...) in a Ruby on Rails 3 application. I have managed to set up free text search and facet search on a couple of different category types. Now, I am stuck with my next task. I want to set up facets related to when the event is occuring. I want to have facets describing both relative date/time ranges such as "today", "this weekend", "next weekend" and absolute date/time ranges , such as "Easter Holiday 2011", "New Years Day 2012", ... The datetime ranges are sometimes overlapping each other. I have browsed around in the Sunspot API

Solr faceted search performance recommendations

时光总嘲笑我的痴心妄想 提交于 2019-12-03 08:22:48
We have a solr instance with 86,315,770 documents. It's using up to 4GB of memory and we need it for faceting on a tokenized field called content. The index size on disk is 23GB. Why are we faceting on a tokenized field? Because we want to query for the top "n" most used terms on that field. Problem is it is taking way too long to perform such queries. Is there any way to improve times when doing faceting like this? Any recommendations? Thanks in advance. jpountz Since Solr computes facets on in-memory data-structures, facet computation is likely to be CPU-bound. The code to compute facets is

Magento, custom product list

偶尔善良 提交于 2019-12-03 08:20:51
I made my own product list page based on Mage_Catalog_Block_Product_List: app/code/local/Mage/Catalog/Block/Product/Special.php: class Mage_Catalog_Block_Product_Special extends Mage_Catalog_Block_Product_List { /* Original contents */ /* Here I call addAttributeToFilter on product collection, and then... */ return $this->_productCollection; } I include this in a CMS page on the center column: <reference name="content"> <block type="catalog/product_special" template="catalog/product/list.phtml" /> </reference> The problem is: The product list shows up just fine, but I get no layered navigation

Dedicated faceted search engine for dealing with dynamic taxonomies - helps just with performance or also flexibilty?

大兔子大兔子 提交于 2019-12-03 05:18:08
问题 I've been thinking for a while about modeling typical ecommerce site with ebay-like taxonomy and attributes dependent on a particular product category. First attempt was choosing between EAV and Table Per Class db inheritance modeling. I've chosen the latter because of the performance, but what it meant was creating dedicated table for each specific (leaf in the category tree) product category with specific category attributes (like resolution for TVs) modeled as a separate column. While

How do I set up a facet search with a many to many relationship using Sunspot?

我们两清 提交于 2019-12-03 05:17:43
问题 I haven't implemented a search feature before and feel a bit stuck. I have a Sunspot search feature which finds results based on keywords - this works great - but I now want to implement the multi select facet feature, but I can't even seem to figure out how to set-up a basic facet search. I have a many to many relationship (in rails not in real life): Class People has_many :skills, :through => experience (and vice versa etc) Class People < ActiveRecord::Base has_many :skills, :through =>

Elasticsearch autocomplete search on array field

旧时模样 提交于 2019-12-03 05:08:42
问题 I am working on autocomplete suggestion on document field that has array of type string. My document is like below; { "title": "Product1", "sales": "6", "rating": "0.0", "cost": "45.00", "tags": [ "blog", "magazine", "responsive", "two columns", "wordpress" ], "category": "wordpress", "description": "Product1 Description", "createDate": "2013-12-19" } { "title": "Product1", "sales": "6", "rating": "0.0", "cost": "45.00", "tags": [ "blog", "paypal", "responsive", "skrill", "wordland" ],

How does Lucene/Solr achieve high performance in multi-field / faceted search?

跟風遠走 提交于 2019-12-03 02:58:16
Context This is a question mainly about Lucene (or possibly Solr) internals. The main topic is faceted search , in which search can happen along multiple independent dimensions (facets) of objects (for example size, speed, price of a car). When implemented with relational database, for a large number of facets multi-field indices are not useful, since facets can be searched in any order, so a specific ordered multi-index is used with low chance, and creating all possible orderings of indices is unbearable. Solr is advertised to cope well with the faceted search task, which if I think correctly

Elasticsearch autocomplete search on array field

。_饼干妹妹 提交于 2019-12-02 18:23:01
I am working on autocomplete suggestion on document field that has array of type string. My document is like below; { "title": "Product1", "sales": "6", "rating": "0.0", "cost": "45.00", "tags": [ "blog", "magazine", "responsive", "two columns", "wordpress" ], "category": "wordpress", "description": "Product1 Description", "createDate": "2013-12-19" } { "title": "Product1", "sales": "6", "rating": "0.0", "cost": "45.00", "tags": [ "blog", "paypal", "responsive", "skrill", "wordland" ], "category": "wordpress", "description": "Product1 Description", "createDate": "2013-12-19" } I am performing

Set Custom Order for Facets coming from Solr

牧云@^-^@ 提交于 2019-12-01 18:09:39
I'm using Solr for offering faceted navigation for e-commerce site. However I need to define the custom order for facets, but I didn't find how to do that in Solr. Any idea how to do this? I'm using Solr Net and latest version of Solr. Here is an example what I need to do. Current Facets Operating System Android (32) Blackberry OS (8) Windows (6) Apple iOS (6) Bada (5) Proprietary (2) Price 10001 - 20000 (42) 20001 - 25000 (12) 500 - 5000 (11) 5001 - 10000 (8) Note that it is just an example. And have many other facets. I want to display Price as the first facet, so need to order this facet