Examples of IndexSpec


Examples of com.google.appengine.api.search.IndexSpec

  private BlogDao blogDao;

  private boolean initedIndex = false;

  private Index getArticleIndex() {
    IndexSpec indexSpec = IndexSpec.newBuilder().setName(ARTICLE_INDEX_NAME).build();
    return SearchServiceFactory.getSearchService().getIndex(indexSpec);
  }
View Full Code Here

Examples of com.google.appengine.api.search.IndexSpec

    IndexSpec indexSpec = IndexSpec.newBuilder().setName(ARTICLE_INDEX_NAME).build();
    return SearchServiceFactory.getSearchService().getIndex(indexSpec);
  }

  private Index getBlogIndex() {
    IndexSpec indexSpec = IndexSpec.newBuilder().setName(BLOG_INDEX_NAME).build();
    return SearchServiceFactory.getSearchService().getIndex(indexSpec);
  }
View Full Code Here

Examples of com.google.appengine.api.search.IndexSpec

    @Produces
    @IndexName("")
    public Index produceIndex(InjectionPoint ip)
    {
        IndexName indexName = ip.getAnnotated().getAnnotation(IndexName.class);
        IndexSpec indexSpec = IndexSpec.newBuilder().setName(indexName.value() + indexName.version()).build();
        return SearchServiceFactory.getSearchService().getIndex(indexSpec);
    }
View Full Code Here

Examples of com.senseidb.indexing.DefaultSenseiInterpreter.IndexSpec

    Document doc = new Document();
    Set<Entry<String,IndexSpec>> entries =  _interpreter._textIndexingSpecMap.entrySet();
    for (Entry<String,IndexSpec> entry : entries){
      try{
        String name = entry.getKey();
        IndexSpec idxSpec = entry.getValue();
        String val = String.valueOf(idxSpec.fld.get(_obj));
        doc.add(new org.apache.lucene.document.Field(name,val,idxSpec.store,idxSpec.index,idxSpec.tv));
      }
      catch(Exception e){
      logger.error(e.getMessage(),e);
View Full Code Here

Examples of com.senseidb.indexing.DefaultSenseiInterpreter.IndexSpec

                    if (idx == null || store == null || tv == null) {
                        throw new ConfigurationException("Invalid indexing parameter specification");
                    }

                    IndexSpec indexingSpec = new IndexSpec();
                    indexingSpec.store = store;
                    indexingSpec.index = idx;
                    indexingSpec.tv = tv;

                    fdef.textIndexSpec = indexingSpec;
View Full Code Here

Examples of com.senseidb.indexing.DefaultSenseiInterpreter.IndexSpec

                    if (idx == null || store == null || tv == null) {
                        throw new ConfigurationException("Invalid indexing parameter specification");
                    }

                    IndexSpec indexingSpec = new IndexSpec();
                    indexingSpec.store = store;
                    indexingSpec.index = idx;
                    indexingSpec.tv = tv;

                    fdef.textIndexSpec = indexingSpec;
View Full Code Here

Examples of org.exist.storage.IndexSpec

            final Collection collection = i.next();

            if( collection.getURI().equalsInternal( XmldbURI.SYSTEM_COLLECTION_URI ) ) {
                continue;
            }
            final IndexSpec idxcfg = collection.getIndexConfiguration( context.getBroker() );

            if( idxflags.indexOnQName && ( idxcfg.getIndexByQName( contextQName ) == null ) ) {
                idxflags.indexOnQName = false;

                if( LOG.isTraceEnabled() ) {
                    LOG.trace( "cannot use index on QName: " + contextQName + ". Collection " + collection.getURI() + " does not define an index" );
                }
            }

            if( !idxflags.hasIndexOnQNames && idxcfg.hasIndexesByQName() ) {
                idxflags.hasIndexOnQNames = true;
            }

            if( !idxflags.hasIndexOnPaths && idxcfg.hasIndexesByPath() ) {
                idxflags.hasIndexOnPaths = true;
            }
        }
        return( idxflags );
    }
View Full Code Here

Examples of org.exist.storage.IndexSpec

    protected void reset(DBBroker broker, NodeProxy proxy) {
        this.broker = broker;
        this.match = proxy.getMatches();
        setNextInChain(null);

        IndexSpec indexConf = proxy.getDocument().getCollection().getIndexConfiguration(broker);
        if (indexConf != null)
            config = (LuceneConfig) indexConf.getCustomIndexSpec(LuceneIndex.ID);

        getTerms();
        nodesWithMatch = new TreeMap<>();
        /* Check if an index is defined on an ancestor of the current node.
        * If yes, scan the ancestor to get the offset of the first character
View Full Code Here

Examples of org.exist.storage.IndexSpec

        for (final Iterator<Collection> i = contextSequence.getCollectionIterator(); i.hasNext(); ) {
            final Collection collection = i.next();
            if (collection.getURI().startsWith(XmldbURI.SYSTEM_COLLECTION_URI)) {
                continue;
            }
            IndexSpec idxConf = collection.getIndexConfiguration(context.getBroker());
            if (idxConf != null) {
                final RangeIndexConfig config = (RangeIndexConfig) idxConf.getCustomIndexSpec(RangeIndex.ID);
                if (config != null) {
                    configs.add(config);
                }
            }
        }
View Full Code Here

Examples of org.exist.storage.IndexSpec

        for (final Iterator<Collection> i = contextSequence.getCollectionIterator(); i.hasNext(); ) {
            final Collection collection = i.next();
            if (collection.getURI().startsWith(XmldbURI.SYSTEM_COLLECTION_URI)) {
                continue;
            }
            IndexSpec idxConf = collection.getIndexConfiguration(context.getBroker());
            if (idxConf != null) {
                RangeIndexConfig config = (RangeIndexConfig) idxConf.getCustomIndexSpec(RangeIndex.ID);
                if (config != null) {
                    RangeIndexConfigElement rice = config.find(path);
                    if (rice != null && !rice.isComplex()) {
                        return rice;
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.