Skip to content

Instantly share code, notes, and snippets.

@rotty3000
Created August 1, 2013 16:42
Show Gist options
  • Save rotty3000/6133086 to your computer and use it in GitHub Desktop.
Save rotty3000/6133086 to your computer and use it in GitHub Desktop.
skip bobo when no facets
@@ -113,4 +113,12 @@ public class LuceneIndexSearcher extends BaseIndexSearcher {
facets = searchContext.getFacets();
+ if (facets.isEmpty()) {
+ return search(
+ searchContext.getSearchEngineId(),
+ searchContext.getCompanyId(), query,
+ searchContext.getSorts(), searchContext.getStart(),
+ searchContext.getEnd());
+ }
+
for (Facet facet : facets.values()) {
if (facet.isStatic()) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment