All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.shopizer.search.services.SearchHit Maven / Gradle / Ivy

There is a newer version: 2.11.2
Show newest version
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