com.konakart.app
Class SolrProducts

java.lang.Object
  extended by com.konakart.app.SolrProducts

public class SolrProducts
extends java.lang.Object

Used to return the search result from Solr


Constructor Summary
SolrProducts()
           
 
Method Summary
 Category[] getCategoryFacets()
          The result of a product search using SOLR may contain the category facets including the number of products per category.
 KKFacet[] getCustomFacets()
          Array of custom field facets
 Manufacturer[] getManufacturerFacets()
          The result of a product search using SOLR may contain the manufacturer facets including the number of products per manufacturer.
 java.util.ArrayList<java.lang.Integer> getProductIds()
           
 java.util.HashMap<java.lang.Integer,java.lang.String[]> getSnippetMap()
          HashMap containing snippets for each product
 int getTotalNumProducts()
           
 void setCategoryFacets(CategoryIf[] categoryFacets)
          The result of a product search using SOLR may contain the category facets including the number of products per category.
 void setCustomFacets(KKFacetIf[] customFacets)
          Array of custom field facets
 void setManufacturerFacets(ManufacturerIf[] manufacturerFacets)
          The result of a product search using SOLR may contain the manufacturer facets including the number of products per manufacturer.
 void setProductIds(java.util.ArrayList<java.lang.Integer> productIds)
           
 void setSnippetMap(java.util.HashMap<java.lang.Integer,java.lang.String[]> snippetMap)
          HashMap containing snippets for each product
 void setTotalNumProducts(int totalNumProducts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrProducts

public SolrProducts()
Method Detail

getTotalNumProducts

public int getTotalNumProducts()
Returns:
Returns the totalNumProducts.

setTotalNumProducts

public void setTotalNumProducts(int totalNumProducts)
Parameters:
totalNumProducts - The totalNumProducts to set.

getProductIds

public java.util.ArrayList<java.lang.Integer> getProductIds()
Returns:
Returns the productIds.

setProductIds

public void setProductIds(java.util.ArrayList<java.lang.Integer> productIds)
Parameters:
productIds - The productIds to set.

getSnippetMap

public java.util.HashMap<java.lang.Integer,java.lang.String[]> getSnippetMap()
HashMap containing snippets for each product

Returns:
the snippetMap

setSnippetMap

public void setSnippetMap(java.util.HashMap<java.lang.Integer,java.lang.String[]> snippetMap)
HashMap containing snippets for each product

Parameters:
snippetMap - the snippetMap to set

getManufacturerFacets

public Manufacturer[] getManufacturerFacets()
The result of a product search using SOLR may contain the manufacturer facets including the number of products per manufacturer.

Returns:
the manufacturerFacets

setManufacturerFacets

public void setManufacturerFacets(ManufacturerIf[] manufacturerFacets)
The result of a product search using SOLR may contain the manufacturer facets including the number of products per manufacturer.

Parameters:
manufacturerFacets - the manufacturerFacets to set

getCategoryFacets

public Category[] getCategoryFacets()
The result of a product search using SOLR may contain the category facets including the number of products per category.

Returns:
the categoryFacets

setCategoryFacets

public void setCategoryFacets(CategoryIf[] categoryFacets)
The result of a product search using SOLR may contain the category facets including the number of products per category.

Parameters:
categoryFacets - the categoryFacets to set

getCustomFacets

public KKFacet[] getCustomFacets()
Array of custom field facets

Returns:
the customFacets

setCustomFacets

public void setCustomFacets(KKFacetIf[] customFacets)
Array of custom field facets

Parameters:
customFacets - the customFacets to set


Copyright © 2011 DS Data Systems UK Ltd.