com.shopizer.search.services.SearchHit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sm-search Show documentation
Show all versions of sm-search Show documentation
Search module for shopizer using elasticsearch 5.6.12
package com.shopizer.search.services;
import java.util.HashMap;
import java.util.Map;
public class SearchHit {
// private org.elasticsearch.search.SearchHit searchit;
private String id;
private String index;
private String internalId;
// private float score;
private Map item = new HashMap();
public Map getItem() {
return item;
}
public SearchHit(Map item, String internalId) {
this.id = (String) item.get("id");
this.internalId = internalId;
this.item = item;
// metaEntries.put("source", item);
// if(searchit.getHighlightFields()!=null && searchit.getHighlightFields().size()>0) {
// metaEntries.put("highlightFields", searchit.getHighlightFields());
// }
}
public String getId() {
return id;
}
public String getIndex() {
return index;
}
public String getInternalId() {
return internalId;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy