Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created February 19, 2015 01:17
Show Gist options
  • Save jcoyne/504dd7cceff006daba6d to your computer and use it in GitHub Desktop.
Save jcoyne/504dd7cceff006daba6d to your computer and use it in GitHub Desktop.
How to use solr to query members of a colection
# http://search-lucene.com/javadoc/lucene/core/org/apache/lucene/search/DocValuesTermsFilter.html
solr_parameters[:fq] << "{!terms f=id method=docValuesTermsFilter}#{@collection.member_ids.join(',')}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment