Questions tagged [fieldcollapsing]

FieldCollapsing is an Solr Feature to group Results coming from Sol.

From Solr docs: Field Collapsing and Result Grouping are different ways to think about the same Solr feature.

Field Collapsing collapses a group of results with the same field value down to a single (or fixed number) of entries. For example, most search engines such as Google collapse on site so only one or two entries are shown, along with a link to click to see more results from that site. Field collapsing can also be used to suppress duplicate documents.

Result Grouping groups documents with a common field value into groups, returning the top documents per group, and the top groups based on what documents are in the groups. One example is a search at Best Buy for a common term such as DVD, that shows the top 3 results for each category ("TVs & Video","Movies","Computers", etc)

https://cwiki.apache.org/confluence/display/solr/FieldCollapsing

27 questions
6
votes
2 answers

SOLR count of groups

http://localhost:8080/solr/select?q=(apposta apposta per) OR (sue prime ore al)&group=true&group.field=grouping_field&group.limit=5 This query returns 2 groups first group has 1 document and second group has 2 documents. In response I see count of…
vladimir
  • 695
  • 3
  • 10
  • 23
4
votes
1 answer

Alternate score-based sorting for Solr Grouping

Currently, solr grouping (http://wiki.apache.org/solr/FieldCollapsing) sorts groups "by the score of the top document within each group". E.g. [...] "groups":[{ "groupValue":"81cb63020d0339adb019a924b2a9e0c2", …
gstathis
  • 4,753
  • 1
  • 17
  • 15
4
votes
0 answers

Solr CursorMark pagination with GroupResult

Is there any work around for using CursorMark with Grouped results? When I try it I get the error msg "Can not use Grouping with cursorMark". I was initially paginating over my documents with start/row but I update my documents between requests, so…
user2402105
  • 101
  • 1
  • 9
2
votes
1 answer

Search among one result from each group in Solr

I have a Solr schema with a kind of versioning. IDs contain version number, so existing docs remain as new are indexed. Sample contents: id = foo1 name = foo version = 1 data = x id = foo2 name = foo version = 2 data = y id = bar1 name =…
solsson
  • 1,521
  • 2
  • 12
  • 19
2
votes
1 answer

solr fieldcollapsing and maximum group.limit

I'm using Solr 3.4 and FieldCollapsing. I would like to group all messages using FieldCollapsing. Per default, every group contains only 1 message. I can modify the numbers of documents per group by changing the Parameter group.limit. That's a bit…
The Bndr
  • 13,204
  • 16
  • 68
  • 107
2
votes
3 answers

Grouping results and keeping facet counts consistent

Using Solr 3.3 Key Store Item Name Description Category Price ========================================================================= 1 Store Name Xbox 360 Nice game machine Electronic Games 199.99 2 Store Name Xbox 360 Nice…
2
votes
1 answer

Solr field collapsing

I read http://wiki.apache.org/solr/FieldCollapsing and I tried the query http://192.168.0.1:8080/solr/append/select?q=mobile&group=true&group.field=brand and I don't see the field collapsing. I mean I see the results, but not the grouping. My…
Bob Yoplait
  • 2,421
  • 1
  • 23
  • 35
2
votes
1 answer

Solr/SolrNet Grouping results

I'm using Solr for a product catalogue built on asp.net with solrnet and everything works pretty well so far. I need to extend the search results by adding some grouping option to it. First I’ll explain how the schema looks like:
randika
  • 1,519
  • 3
  • 18
  • 39
2
votes
1 answer

reducing similar top results in solr result output

I have a search in solr that is returning about 1500 documents. These documents are basically products. For example, I have a bunch of womens shoes in my dataset. My dataset has a wide variety of shoes for women, but it also has some very similar…
Zak
  • 24,947
  • 11
  • 38
  • 68
2
votes
0 answers

Does Solr DocValues improve Grouping performance?

Does use of DocValues provide any performance improvement for Grouping ? I' looked into the blog which mentions improving Grouping performance through DocValues. https://lucidworks.com/blog/fun-with-docvalues-in-solr-4-2/ Right now, Group by…
Shamik
  • 1,671
  • 11
  • 36
  • 64
2
votes
1 answer

solrCloud and group.query

today i build up an Solr Cloud System with 3 nodes, 3 shards and 3 replications. After that I switched the application in order to use the new SolrCloud System instead the old one (singe instance). While most of the features works fine, i found out…
The Bndr
  • 13,204
  • 16
  • 68
  • 107
2
votes
0 answers

Solr 4 - query with both group.facet and group.func fails

When doing a search like http://localhost:8983/solr/select?group=true&group.func=product(fildname1,fieldname2)&group.facet=true&facet=true&facet.field=fieldname3 an error is returned in response where facets are normally…
ted.strauss
  • 4,119
  • 4
  • 34
  • 57
1
vote
1 answer

Solr: one of each in all categories

I have product index at solr, product has category field and I need to select one product (better would be random) from each category, how query would look like?
Giedrius
  • 8,430
  • 6
  • 50
  • 91
1
vote
2 answers

Distributed field collapsing in solr

I am trying to achieve disrtibuted field collapsing in solr. I tried applying the patch https://issues.apache.org/jira/browse/SOLR-1683 but it didnt seem to work. Is there anyway to do this?
Varshith
  • 574
  • 1
  • 5
  • 14
1
vote
1 answer

SOLR Collapse field - range filter where MIN

I have a problem with SOLR Collapse I cannot move with. Assuming documents { id: 1, parent_id: x, value: 3 }, { id: 2, parent_id: y, value: 5 }, { id: 3, parent_id: x, value: 7 }, { id: 4, parent_id: y, value: 10 } now let's say I want to collapse…
kuncajs
  • 1,096
  • 1
  • 9
  • 20
1
2