public class SolrProducts
extends java.lang.Object
Constructor and Description |
---|
SolrProducts() |
Modifier and Type | Method and Description |
---|---|
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.math.BigDecimal |
getMaxPrice()
The maximum price for all products
|
java.math.BigDecimal |
getMaxScore()
The maxscore is the scoring of the topmost document in the search results
|
java.math.BigDecimal |
getMinPrice()
The minimum price for all products
|
KKPriceFacet[] |
getPriceFacets()
Price facets returned after a Solr search
|
java.util.ArrayList<java.lang.Integer> |
getProductIds() |
java.util.HashMap<java.lang.Integer,java.math.BigDecimal> |
getScoreMap()
HashMap containing scores for each product
|
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 |
setMaxPrice(java.math.BigDecimal maxPrice)
The maximum price for all products
|
void |
setMaxScore(java.math.BigDecimal maxScore)
The maxscore is the scoring of the topmost document in the search results
|
void |
setMinPrice(java.math.BigDecimal minPrice)
The minimum price for all products
|
void |
setPriceFacets(KKPriceFacet[] priceFacets)
Price facets returned after a Solr search
|
void |
setProductIds(java.util.ArrayList<java.lang.Integer> productIds) |
void |
setScoreMap(java.util.HashMap<java.lang.Integer,java.math.BigDecimal> scoreMap)
HashMap containing scores for each product
|
void |
setSnippetMap(java.util.HashMap<java.lang.Integer,java.lang.String[]> snippetMap)
HashMap containing snippets for each product
|
void |
setTotalNumProducts(int totalNumProducts) |
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public int getTotalNumProducts()
public void setTotalNumProducts(int totalNumProducts)
totalNumProducts
- The totalNumProducts to set.public java.util.ArrayList<java.lang.Integer> getProductIds()
public void setProductIds(java.util.ArrayList<java.lang.Integer> productIds)
productIds
- The productIds to set.public java.util.HashMap<java.lang.Integer,java.lang.String[]> getSnippetMap()
public void setSnippetMap(java.util.HashMap<java.lang.Integer,java.lang.String[]> snippetMap)
snippetMap
- the snippetMap to setpublic Manufacturer[] getManufacturerFacets()
public void setManufacturerFacets(ManufacturerIf[] manufacturerFacets)
manufacturerFacets
- the manufacturerFacets to setpublic Category[] getCategoryFacets()
public void setCategoryFacets(CategoryIf[] categoryFacets)
categoryFacets
- the categoryFacets to setpublic KKFacet[] getCustomFacets()
public void setCustomFacets(KKFacetIf[] customFacets)
customFacets
- the customFacets to setpublic java.math.BigDecimal getMaxPrice()
public void setMaxPrice(java.math.BigDecimal maxPrice)
maxPrice
- the maxPrice to setpublic java.math.BigDecimal getMinPrice()
public void setMinPrice(java.math.BigDecimal minPrice)
minPrice
- the minPrice to setpublic KKPriceFacet[] getPriceFacets()
public void setPriceFacets(KKPriceFacet[] priceFacets)
priceFacets
- the priceFacets to setpublic java.math.BigDecimal getMaxScore()
public void setMaxScore(java.math.BigDecimal maxScore)
maxScore
- the maxScore to setpublic java.util.HashMap<java.lang.Integer,java.math.BigDecimal> getScoreMap()
public void setScoreMap(java.util.HashMap<java.lang.Integer,java.math.BigDecimal> scoreMap)
scoreMap
- the scoreMap to setCopyright © 2018 DS Data Systems UK Ltd.