Package org.amdatu.search

Examples of org.amdatu.search.Document


  private volatile LogService logService;
  private volatile ProductService productService;
 
  @Override
  public void indexProduct(Product product) {
    Document document = index.newDocument();
    document.setField("uri", product.get_id());
    document.setField("content", product.getName());
   
    try {
      index.update(document);
    } catch (SearchException e) {
      logService.log(LogService.LOG_ERROR, "Error indexing product with name '" + product.getName() + "'", e);
View Full Code Here

TOP

Related Classes of org.amdatu.search.Document

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.