gpt4 book ai didi

proj.zoie.api.indexing.ZoieIndexable类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:57:42 25 4
gpt4 key购买 nike

本文整理了Java中proj.zoie.api.indexing.ZoieIndexable类的一些代码示例,展示了ZoieIndexable类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoieIndexable类的具体详情如下:
包路径:proj.zoie.api.indexing.ZoieIndexable
类名称:ZoieIndexable

ZoieIndexable介绍

[英]Builder object to produce indexing requests.
[中]生成器对象生成索引请求。

代码示例

代码示例来源:origin: com.senseidb.zoie/zoie-core

@Override
public IndexingReq[] buildIndexingReqs() {
 return _inner.buildIndexingReqs();
}

代码示例来源:origin: com.senseidb.zoie/zoie-core

@Override
public long getUID() {
 return _inner.getUID();
}

代码示例来源:origin: senseidb/zoie

@Override
public boolean isDeleted() {
 return _inner.isDeleted();
}

代码示例来源:origin: com.linkedin.zoie/zoie-core

if (indexable == null || indexable.isSkip())
 continue;
long uid = indexable.getUID();
delSet.add(uid);
addList.remove(uid);
if (!(indexable.isDeleted() || evt.isDelete())) // update event
  IndexingReq[] reqs = indexable.buildIndexingReqs();
   for (IndexingReq req : reqs) {
     if (req != null) // if doc is provided, interpret as
       if (doc!=null){							 
        ZoieSegmentReader.fillDocumentID(doc, uid);
        if (indexable.isStorable()){
         byte[] bytes = indexable.getStoreValue();
         if (bytes!=null){
          doc.add(new Field(AbstractZoieIndexable.DOCUMENT_STORE_FIELD,bytes));

代码示例来源:origin: com.senseidb/sensei-core

public Document buildDoc(JSONObject json) {
 ZoieIndexable indexable = defaultJsonSchemaInterpreter.convertAndInterpret(json);
 Document ret = indexable.buildIndexingReqs()[0].getDocument();
 ret.add(new StoredField(AbstractZoieIndexable.DOCUMENT_STORE_FIELD, indexable.getStoreValue()));
 ZoieSegmentReader.fillDocumentID(ret, indexable.getUID());
 return ret;
}

代码示例来源:origin: com.linkedin.zoie/zoie-core

_version = event.getVersion();
 ZoieIndexable indexable = _interpreter.convertAndInterpret(event.getData());
 if (indexable.isSkip()) continue;
 if (!_appendOnly){
  try {
   _writer.deleteDocuments(new Term(DOCUMENT_ID_FIELD,String.valueOf(indexable.getUID())));
  } catch(IOException e) {
   throw new ZoieException(e.getMessage(),e);
IndexingReq[] reqs = indexable.buildIndexingReqs();
for (IndexingReq req : reqs){
 Analyzer localAnalyzer = req.getAnalyzer();
 Document doc = req.getDocument();
 Field uidField = new Field(DOCUMENT_ID_FIELD,String.valueOf(indexable.getUID()),Store.NO,Index.NOT_ANALYZED_NO_NORMS);
 uidField.setOmitNorms(true);
 doc.add(uidField);

代码示例来源:origin: senseidb/zoie

@Override
public boolean isSkip() {
 return _inner.isSkip();
}

代码示例来源:origin: senseidb/zoie

if (indexable == null || indexable.isSkip()) continue;
long uid = indexable.getUID();
delSet.add(uid);
addList.remove(uid);
if (!(indexable.isDeleted() || evt.isDelete())) // update event
  IndexingReq[] reqs = indexable.buildIndexingReqs();
  for (IndexingReq req : reqs) {
   if (req != null) // if doc is provided, interpret as
    if (doc != null) {
     ZoieSegmentReader.fillDocumentID(doc, uid);
     if (indexable.isStorable()) {
      byte[] bytes = indexable.getStoreValue();
      if (bytes != null) {
       doc.add(new StoredField(AbstractZoieIndexable.DOCUMENT_STORE_FIELD, bytes));

代码示例来源:origin: com.linkedin.zoie/zoie-core

if (indexable.isSkip())
 continue;
 _writer.deleteDocuments(new Term(DOCUMENT_ID_FIELD, String.valueOf(indexable.getUID())));
} catch (IOException e)
IndexingReq[] reqs = indexable.buildIndexingReqs();
for (IndexingReq req : reqs)
 Field uidField = new Field(DOCUMENT_ID_FIELD, String.valueOf(indexable.getUID()), Store.NO, Index.NOT_ANALYZED_NO_NORMS);
 uidField.setOmitNorms(true);
 doc.add(uidField);

代码示例来源:origin: com.senseidb.zoie/zoie-core

@Override
public boolean isSkip() {
 return _inner.isSkip();
}

代码示例来源:origin: com.senseidb.zoie/zoie-core

if (indexable == null || indexable.isSkip()) continue;
long uid = indexable.getUID();
delSet.add(uid);
addList.remove(uid);
if (!(indexable.isDeleted() || evt.isDelete())) // update event
  IndexingReq[] reqs = indexable.buildIndexingReqs();
  for (IndexingReq req : reqs) {
   if (req != null) // if doc is provided, interpret as
    if (doc != null) {
     ZoieSegmentReader.fillDocumentID(doc, uid);
     if (indexable.isStorable()) {
      byte[] bytes = indexable.getStoreValue();
      if (bytes != null) {
       doc.add(new StoredField(AbstractZoieIndexable.DOCUMENT_STORE_FIELD, bytes));

代码示例来源:origin: senseidb/zoie

@Override
public IndexingReq[] buildIndexingReqs() {
 return _inner.buildIndexingReqs();
}

代码示例来源:origin: senseidb/zoie

@Override
public long getUID() {
 return _inner.getUID();
}

代码示例来源:origin: com.linkedin.zoie/zoie-core

public boolean isSkip() {
 return _inner.isSkip();
}

代码示例来源:origin: com.senseidb.zoie/zoie-core

@Override
public boolean isDeleted() {
 return _inner.isDeleted();
}

代码示例来源:origin: com.linkedin.zoie/zoie-core

@Override
public IndexingReq[] buildIndexingReqs() {
  return _inner.buildIndexingReqs();
}

代码示例来源:origin: com.linkedin.zoie/zoie-core

public long getUID() {
 return _inner.getUID();
}

代码示例来源:origin: com.linkedin.zoie/zoie-core

public boolean isDeleted() {
 return _inner.isDeleted();
}

代码示例来源:origin: com.senseidb/sensei-core

IndexingReq[] idxReqs = indexable.buildIndexingReqs();
for (IndexingReq req : idxReqs) {
 Document doc = req.getDocument();

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com