faceted-search

Lucene Analyzer chain: ShingleFilter without filler tokens

放肆的年华 提交于 2019-12-10 17:56:54
问题 In my analyzer chain, ShingleFilter comes after stopword filter. As mentioned in the docs, ShingleFilter handles position increments > 1 by inserting filler tokens (tokens with termtext "_"). For example : "please divide this sentence into biword shingles" Shingles of size 2 : please divide, divide _, _ sentence, sentence _, _ biword, biword shingles (assuming that "this, "into" are stopwords) I would like to eliminate those shingles with the filler tokens, i.e. my desired output contains

SQL Server query by column pair

北慕城南 提交于 2019-12-10 10:19:00
问题 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:

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

回眸只為那壹抹淺笑 提交于 2019-12-09 13:21:15
问题 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

ArangoDB Faceted Search Performance

纵然是瞬间 提交于 2019-12-08 19:36:31
问题 We are evaluating ArangoDB performance in space of facets calculations. There are number of other products capable of doing the same, either via special API or query language: MarkLogic Facets ElasticSearch Aggregations Solr Faceting etc We understand, there is no special API in Arango to calculate factes explicitly. But in reality, it is not needed, thanks for a comprehensive AQL it can be easily achieved via simple query, like: FOR a in Asset COLLECT attr = a.attribute1 INTO g RETURN {

set field's initial value within haystack's FacetedSearchForm

旧巷老猫 提交于 2019-12-08 05:42:12
问题 I am using django-haystack with Solr backend in one of my projects. I have a SearchForm which inherits from FacetedSearchForm . Now, what I am trying to do is to add an intital value to some of the fields within the Form. from django.forms import forms from haystack.forms import FacetedSearchForm MySearchForm(FacetedSearchForm): """ My basic search form """ field_one = forms.CharField(required=False, initial='0') field_two = forms.CharField(required=False, initial='some_value') previously

Django Haystack Faceting examples

百般思念 提交于 2019-12-07 21:26:45
问题 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

Does Solr's “More like this” support facet queries?

爱⌒轻易说出口 提交于 2019-12-07 20:10:57
问题 I have been able to facet and highlight with the Dismax handler. I tried to do faceting for More Like This results , such as this query: "fetch documents similar to '11qualcomm.doc' whose 'doc_keywords' has 'Communication' as mandatory. select? facet=on&facet.field=doc_keywords&facet.mincount=1 &fl=id,score &fq=doc_keywords:%22Communication%22 &indent=true &mlt=true&mlt.count=20 &mlt.fl=doc_keywords_searchable,doc_author_searchable,doc_abstract,text&mlt.mindf=1&mlt.mintf=1 &mlt.qf=doc

set field's initial value within haystack's FacetedSearchForm

雨燕双飞 提交于 2019-12-07 14:18:33
I am using django-haystack with Solr backend in one of my projects. I have a SearchForm which inherits from FacetedSearchForm . Now, what I am trying to do is to add an intital value to some of the fields within the Form. from django.forms import forms from haystack.forms import FacetedSearchForm MySearchForm(FacetedSearchForm): """ My basic search form """ field_one = forms.CharField(required=False, initial='0') field_two = forms.CharField(required=False, initial='some_value') previously when i was using django.forms.Form this used to work absolutely fine. I have been digging around django

Faceting using SolrJ and Solr4

走远了吗. 提交于 2019-12-07 06:32:09
问题 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

Extracting Distance from FacetWP Proximity Function to Display in Wordpress Template

让人想犯罪 __ 提交于 2019-12-06 14:32:40
I am quite new to Wordpress & Php coding in general, I have a relatively simple theme that I have been working with that contains a custom post type that stores latitude and longitude. Each post is a listing a hotel listing within a directory. The theme I am using also integrates with FacetWP the faceting plugin for WordPress. It is possible for the user to search the site by typing a location of locating themselves, this happens using Googles Mapping functionality. When the search is submitted parameters are passed to an archive page: http://localhost:8888/wowgoddess/listings/?fwp_location=43