public function unindex($typeOrId) {
		$id = $typeOrId;
		
		if (is_object($typeOrId)) {
			$type = $typeOrId->class; // get_class($type);
			$id = $type . '_' . $typeOrId->ID;
		} else {
			$id = self::RAW_DATA_KEY . $id;
		}

		try {
			// delete all published/non-published versions of this item, so delete _* too
			$this->getSolr()->deleteByQuery('id:' . $id);
			$this->getSolr()->deleteByQuery('id:' . $id .'_*');
			$this->getSolr()->commit();
		} catch (Exception $ie) {
			SS_Log::log($ie, SS_Log::ERR);
		}
	}
public function unindex($typeOrId) {
		$id = $typeOrId;
		
		if (is_object($typeOrId)) {
			$type = $typeOrId->class; // get_class($type);
			$id = $type . '_' . $typeOrId->ID;
		} else {
			$id = self::RAW_DATA_KEY . $id;
		}

		try {
			// delete all published/non-published versions of this item, so delete _* too
			$this->getSolr()->deleteByQuery('id:' . $id);
			$this->getSolr()->deleteByQuery('id:' . $id .'_*');
			$this->getSolr()->commit();
		} catch (Exception $ie) {
			SS_Log::log($ie, SS_Log::ERR);
		}
	}
public function unindex ( $ typeOrId ) { $ id = $ typeOrId ; if ( is_object ( $ typeOrId ) ) { $ type = $ typeOrId -> class ; // get_class($type); $ id = $ type . '_' . $ typeOrId -> ID ; } else { $ id = self :: RAW_DATA_KEY . $ id ; } try { // delete all published/non-published versions of this item, so delete _* too $ this -> getSolr ( ) -> deleteByQuery ( 'id:' . $ id ) ; $ this -> getSolr ( ) -> deleteByQuery ( 'id:' . $ id . '_*' ) ; $ this -> getSolr ( ) -> commit ( ) ; } catch ( Exception $ ie ) { SS_Log :: log ( $ ie , SS_Log :: ERR ) ; } }
Delete a data object from the index

@param DataObject $object
Delete a data object from the index