faceted-search

Django Haystack Faceting examples

亡梦爱人 提交于 2019-12-06 06:28:02
I want to use Django-Haystack-Solr in a site I am working on. I have worked through the examples in the Haystack documentation and have searched the internet extensively for other examples. I am having difficulty making the leap to integrating it in my site. I found http://www.slideshare.net/Nagyman/faceted-navigation-using-django-haystack-and-solr interesting, but fell short of how to pull it all together. If anyone has run across some "robust" Haystack faceting examples, websites that are open-source, or would be willing to share some of your own code please provide links/share code. Thanks

SQL Server query by column pair

我只是一个虾纸丫 提交于 2019-12-06 01:23:25
I'm working on products filter (faceted search) like Amazon. I have a table with properties (color, ram, screen) like this: ArticleID PropertyID Value --------- ---------- ------------ 1 1 Black 1 2 8 GB 1 3 15" 2 1 White 2 2 8 GB 3 3 13" I have to select articles depending on what properties are selected. You can select multiple values for one property (for example RAM: 4 GB and 8 GB) and you can select multiple properties (for example RAM and screen size). I need functionality like this: SELECT ArticleID FROM ArticlesProperties WHERE (PropertyID = 2 AND Value IN ('4 GB', '8 GB')) AND

Query product catalog RavenDB store for spec aggregate over arbitrary collection of products

家住魔仙堡 提交于 2019-12-05 08:53:11
This is a continuation of the project outlined in this question. I have the following model: class Product { public string Id { get; set; } public string[] Specs { get; set; } public int CategoryId { get; set; } } The "Specs" array stores product specification name value pairs joined by a special character. For example if a product is colored blue the spec string would be "Color~Blue". Representing specs in this way allows querying for products having multiple spec values specified by a query. There are two principal queries that I would like to support: Get all products in a given category.

Faceting using SolrJ and Solr4

坚强是说给别人听的谎言 提交于 2019-12-05 08:26:18
I've gone through the related questions on this site but haven't found a relevant solution. When querying my Solr4 index using an HTTP request of the form &facet=true&facet.field=country The response contains all the different countries along with counts per country. How can I get this information using SolrJ? I have tried the following but it only returns total counts across all countries, not per country: solrQuery.setFacet(true); solrQuery.addFacetField("country"); The following does seem to work, but I do not want to have to explicitly set all the groupings beforehand: solrQuery

What search tools are available for ASP.NET site?

醉酒当歌 提交于 2019-12-04 17:40:02
Is there any good search tools for asp.net I can buy to carry out search indexes easily on data I have in my database? What I require is something that would carry out a general site search of articles but also faceted search as well. Faceted search is quite important feature. Thanks. I agree with Mauricio Scheffer, using Solr.NET will help achieve what you want. I implemented a basic ASP.NET web form example around a year back. I found this link to be very useful to get me started: http://crazorsharp.blogspot.co.uk/2010/01/full-text-search-using-solr-lucene-and.html Using the example (above),

I can't seem to get faceted search working in elastic search

烈酒焚心 提交于 2019-12-04 15:38:32
I can't seem to understand the QueryDSL for facets in elastic search. Below are my query object, and the mapping for my tags array. I'm trying to get these to put in a faceted navigation based on tags. Each "element" will have multiple tags associated in the tags array [Not all elements will have tags. Some will have an empty array.]. Each tag is an object with id and tag properties. I've tried the nested facet approach and get the error that "tags is not nested", so then I try this below. I don't receive an error, but there is no facets object in the return JSON. I've been using this page for

Solr faceted search performance recommendations

独自空忆成欢 提交于 2019-12-04 12:59:46
问题 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. 回答1: Since Solr computes facets on in

Magento, custom product list

非 Y 不嫁゛ 提交于 2019-12-04 12:27:00
问题 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

Elasticsearch: excluding filters while faceting possible? (like in Solr)

馋奶兔 提交于 2019-12-04 11:13:49
问题 I'm looking into changing from Solr to ES. One of the things I can't find info about is whether ES lets me define exclusion filters when faceting. For example consider producttype with values: A,B,C which I want to facet on (i.e: show counts for). Also consider that the query is constrained to producttype: A . In this case Solr allows me to specify that I want to exclude the contraint producttype: A from impacting faceting on producttype . IOW, it displays counts on producttype as if the

Set Custom Order for Facets coming from Solr

孤人 提交于 2019-12-04 03:36:24
问题 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.