Created
August 1, 2013 16:42
-
-
Save rotty3000/6133086 to your computer and use it in GitHub Desktop.
skip bobo when no facets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -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