You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by me...@apache.org on 2013/02/27 21:48:24 UTC
svn commit: r1450954 -
/stanbol/trunk/contenthub/web/src/main/java/org/apache/stanbol/contenthub/web/resources/FeaturedSearchResource.java
Author: meric
Date: Wed Feb 27 20:48:24 2013
New Revision: 1450954
URL: http://svn.apache.org/r1450954
Log:
STANBOL-964 queryTerm facet problem is solved in Contenthub FeaturedSearch
Modified:
stanbol/trunk/contenthub/web/src/main/java/org/apache/stanbol/contenthub/web/resources/FeaturedSearchResource.java
Modified: stanbol/trunk/contenthub/web/src/main/java/org/apache/stanbol/contenthub/web/resources/FeaturedSearchResource.java
URL: http://svn.apache.org/viewvc/stanbol/trunk/contenthub/web/src/main/java/org/apache/stanbol/contenthub/web/resources/FeaturedSearchResource.java?rev=1450954&r1=1450953&r2=1450954&view=diff
==============================================================================
--- stanbol/trunk/contenthub/web/src/main/java/org/apache/stanbol/contenthub/web/resources/FeaturedSearchResource.java (original)
+++ stanbol/trunk/contenthub/web/src/main/java/org/apache/stanbol/contenthub/web/resources/FeaturedSearchResource.java Wed Feb 27 20:48:24 2013
@@ -222,12 +222,13 @@ public class FeaturedSearchResource exte
this.chosenFacets = JSONUtils.convertToString(constraintsMap);
SolrQuery sq;
+ List<FacetResult> allAvailableFacets = featuredSearch.getAllFacetResults(indexName);
if (this.chosenFacets != null) {
- List<FacetResult> allAvailableFacets = featuredSearch.getAllFacetResults(indexName);
sq = SolrQueryUtil.prepareSolrQuery(queryTerm, allAvailableFacets, constraintsMap);
} else {
sq = SolrQueryUtil.prepareSolrQuery(queryTerm);
}
+ SolrQueryUtil.setFacetFields(sq, allAvailableFacets);
sq.setStart(offset);
sq.setRows(limit + 1);
this.searchResults = featuredSearch.search(sq, ontologyURI, indexName);