faceted-search

Apache Solr: Faceted Search on multivalued fields

≡放荡痞女 提交于 2019-12-14 03:07:41
问题 Im currently working on a solr based search application. I have two multivalued fields for example: The data is read out of a database. <int name="id">1</int> <arr name="type"> <str>Marke</str> <str>Modell</str> <str>Fahrzeugtyp</str> <str>engine</str> </arr> <arr name="value"> <str>Volkswagen</str> <str>Golf</str> <str>Golf TDI</str> <str>V-Engine</str> In my current solr configuration there is no relationship between these two multivalued fields. So that i can say "Marke = Volkswagen".

Lucene downgrade 3.6.0 to 3.5.0

独自空忆成欢 提交于 2019-12-13 06:48:12
问题 We are using Lucene version 3.6.0 in our project. Now we decided to start using Bobo Browse for faceted search. However the current version of Bobo Browse (3.1.0) doesn't support Lucene 3.6.0, therefore we decided to downgrade back to version 3.5.0. I was reading the changelog but I couldn't find any mention of changes in the index structure. Does anyone know if it will be necessary to rebuild the index? This is something we want to avoid. Many thanks in advance for any ideas! 回答1: If anyone

Drupal Job board: Faceted Search with “OR” operator, but sort results by most matching facet criterias/term count

倖福魔咒の 提交于 2019-12-13 04:28:58
问题 I'm quite stuck with searching for a solution for my problem and I hope that you can maybe help me. In general I want to build a small job platform. It includes an "Explore"-Section, which is just like a Search-Page with Facets. The actual job-nodes can be tagged with terms of the two vocabulary "skills" and "interests". The facets on the search page allow the user to filter jobs exactly along these skills and interests. However, I want to use the "OR"-Operator for the Facets, so that the

Faceted Search Attribute Count

萝らか妹 提交于 2019-12-12 09:07:43
问题 I want to have an attribute count query for following fiddle. FIDDLE Its working perfect but I'm failed to count the attributes using this. Don't know how it'll be achieved because after spending many hours and changing query still its not working for me. Anyone has suggestions?? 回答1: Here is how you can this: SELECT meta_name, meta_value, COUNT(DISTINCT item_id) count FROM meta m JOIN item_meta im ON im.field_id = m.id GROUP BY meta_name, meta_value Output: | META_NAME | META_VALUE | COUNT |

How to get results in sorted order when I use facet limit in solr?

喜夏-厌秋 提交于 2019-12-11 11:42:11
问题 Usually a solr query with facetting option returns the results in sorted order based on the facet count. When I set the facet limit to -1 the results were not returned in sorted order; this means I have to do the sorting manually in the server side. Should I need to append anything more in the solr query to get it in a sorted order? 回答1: please try facet.sort=count The default facet order is base on the count, descending order, but it will return the index order rather than count desc order

Showing human readable most frequent indexed terms using a stemmed field with Solr faceted search

ε祈祈猫儿з 提交于 2019-12-11 08:52:54
问题 We are planning on using Solr to show the users the "n" most frequent terms from a field and we want to apply stemming so that similar terms get grouped. Now, we need to show the terms to the users but the stemmed terms are not always human readable. Is there any way to get an example of the original terms that got stemmed so that those could be shown to the user? The only solution we can think of is quering two different fields, one with stemming and one without and then do the matching

Facet to get all keys from an object in elasticsearch

こ雲淡風輕ζ 提交于 2019-12-11 02:14:28
问题 Let's say I have the following docs: { "title": "Some Title", options: { "key5": 1, "key3": 0, "key1": 1, } }, { "title": "Some Title", options: { "key2": 0, "key3": 0, "key5": 1, } } I want to get all the keys from options object using facet. If options was a simple array of keys as strings, I would simple use a facet like this: "facets" : { "options" : { "terms" : { "field" : "options" } } } But it doesn't work in my case. So if a query returns those two docs, I should get these keys: [

Solr Facet only on Date excluding time

十年热恋 提交于 2019-12-10 22:55:30
问题 I am trying to do a facet pivot on two fields timestamp and price and here is how my solr query is: http://localhost:8888/solr/collection1/select?q=description%3laptop&wt=json&indent=true&facet=true&facet.pivot=timestamp,price&stats=true&stats.field=price&stats.facet=timestamp This gives me the result as: *"timestamp,price":[{ "field":"timestamp", "value":"2015-06-02T07:12:29.044Z", "count":50, "pivot":[{ "field":"price", "value":389.0, "count":9}, { "field":"price", "value":388.0, "count":4}

Haystack Faceted: __init__() got an unexpected keyword argument 'facet_fields'

会有一股神秘感。 提交于 2019-12-10 22:08:31
问题 While enjoying my first results with haystack 2.4.1 (Django 1.8), I have to admit that I'm having a hard time on learning it. The documentation is sometimes incomplete, and some features have to few examples. Faceted search is one of them. I'm following the documentation, and at the url.py: urlpatterns = patterns('haystack.views', url(r'^$', FacetedSearchView(form_class=FacetedSearchForm, facet_fields=['author']), name='haystack_search'), ) I'm getting the following error: TypeError at /tag

How to create Solr schema for hierarchical facet by splitting data into multiple fields at index time

放肆的年华 提交于 2019-12-10 19:01:59
问题 I want to implement Solr hierarchical facet for my application where there is 2 level hierarchy between Category and SubCategory. I want to use a solution mentioned on http://wiki.apache.org/solr/HierarchicalFaceting#Pivot_Facets link. The flattened data will be as below: Doc#1: NonFic > Law Doc#2: NonFic > Sci Doc#3: NonFic > Sci > Phys And this data should be split into a separate field for each level of the hierarchy at index time. Same as below. Indexed Terms Doc#1: category_level0: