Package org.compass.core.impl

Examples of org.compass.core.impl.DefaultCompassHit


    CompassTransaction compassTransaction = compassSession.beginTransaction();
    String query = "+itemId:" + item.getItemId().toString();
    CompassHits hits = compassSession.find(query);
    Iterator<?> iterator = hits.detach().iterator();
    while (iterator.hasNext()) {
      DefaultCompassHit defaultCompassHit = (DefaultCompassHit) iterator.next();
      compassSession.delete(defaultCompassHit.getData());
    }
   
    compassTransaction.commit();
    compassSession.close();
  }
View Full Code Here


    String query = "+itemId:" + master.getItemId().toString();
    CompassHits hits = compassSession.find(query);
    Iterator<?> iterator = hits.detach().iterator();
    while (iterator.hasNext()) {
      DefaultCompassHit defaultCompassHit = (DefaultCompassHit) iterator.next();
      compassSession.delete(defaultCompassHit.getData());
    }
   
    if (!master.getItemTypeCd().equals(Constants.ITEM_TYPE_SKU)) {
      if (isShareInventory) {
        for (SiteProfileClass siteProfileClass : siteProfileClasses) {
View Full Code Here

    CompassTransaction compassTransaction = compassSession.beginTransaction();
    String query = "+contentId:" + content.getContentId().toString();
    CompassHits hits = compassSession.find(query);
    Iterator<?> iterator = hits.detach().iterator();
    while (iterator.hasNext()) {
      DefaultCompassHit defaultCompassHit = (DefaultCompassHit) iterator.next();
      compassSession.delete(defaultCompassHit.getData());
    }
   
    compassTransaction.commit();
    compassSession.close();
  }
View Full Code Here

    String query = "+contentId:" + master.getContentId().toString();
    CompassHits hits = compassSession.find(query);
    Iterator<?> iterator = hits.detach().iterator();
    while (iterator.hasNext()) {
      DefaultCompassHit defaultCompassHit = (DefaultCompassHit) iterator.next();
      compassSession.delete(defaultCompassHit.getData());
    }
   
    for (SiteProfileClass siteProfileClass : siteProfileClasses) {
      boolean found = false;
      for (ContentLanguage language : master.getContentLanguages()) {
View Full Code Here

    Vector<Object> queryHits = new Vector<Object>();
    Iterator<?> iterator = hits.detach().iterator();
    int pos = -1;
    while (iterator.hasNext()) {
      pos++;
      DefaultCompassHit defaultCompassHit = (DefaultCompassHit) iterator.next();
      if (pos < start) {
        continue;
      }
      if (pos > end) {
        break;
      }
      queryHits.add(defaultCompassHit.getData());
    }
    result.setQueryHits(queryHits);
    compassTransaction.commit();
    compassSession.close();
    return result;
View Full Code Here

TOP

Related Classes of org.compass.core.impl.DefaultCompassHit

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.