Package org.apache.lucene.index

Examples of org.apache.lucene.index.Term.createTerm()


            String fieldName = sortedFields[pos].getKey();
            template = new Term(fieldName);
            info.template = template;
          }
         
          return template.createTerm(text);
        }
       
      };
    }
 
View Full Code Here


   
    FieldType ftright =readerright.getSchema().getFieldType(fieldRigth);
    String prefixRight=TrieField.getMainValuePrefix(ftright);
    Term tiRight=new Term(fieldRigth, prefixRight==null?"":prefixRight);
   
    TermEnum teRight = readerright.getReader().terms(tiRight.createTerm(prefixRight==null?"":prefixRight));
    TermDocs tdRight=readerright.getReader().termDocs();
    this.join=new int[readerright.getReader().maxDoc()+1][];
    for(int i=0;i<this.join.length;i++)
    {
      this.join[i]=null;
View Full Code Here

        //These are spelled the same, continue on
        continue;
      }

      if (options.extendedResults == true && reader != null && field != null) {
        term = term.createTerm(tokenText);
        result.addFrequency(token, reader.docFreq(term));
        int countLimit = Math.min(options.count, suggestions.length);
        if(countLimit>0)
        {
          for (int i = 0; i < countLimit; i++) {
View Full Code Here

        result.addFrequency(token, reader.docFreq(term));
        int countLimit = Math.min(options.count, suggestions.length);
        if(countLimit>0)
        {
          for (int i = 0; i < countLimit; i++) {
            term = term.createTerm(suggestions[i]);
            result.add(token, suggestions[i], reader.docFreq(term));
          }
        } else if(shardRequest) {
          List<String> suggList = Collections.emptyList();
          result.add(token, suggList);
View Full Code Here

            String fieldName = sortedFields[pos].getKey();
            template = new Term(fieldName);
            info.template = template;
          }
         
          return template.createTerm(text);
        }
       
      };
    }
 
View Full Code Here

        {
          term = new Term(fieldName, termAtt.toString());
        } else
        {
//           create from previous to save fieldName.intern overhead
          term = term.createTerm(termAtt.toString());
        }
        bq.add(new BooleanClause(new TermQuery(term),BooleanClause.Occur.SHOULD));
      }
      ts.end();
      ts.close();
View Full Code Here

        {
          term = new Term(fieldName, termAtt.toString());
        } else
        {
//           create from previous to save fieldName.intern overhead
          term = term.createTerm(termAtt.toString());
        }
        tf.addTerm(term);
      }
      ts.end();
      ts.close();
View Full Code Here

            String fieldName = (String) sortedFields[pos].getKey();
            template = new Term(fieldName);
            info.template = template;
          }
         
          return template.createTerm(text);
        }
       
      };
    }
 
View Full Code Here

            String fieldName = sortedFields[pos].getKey();
            template = new Term(fieldName);
            info.template = template;
          }
         
          return template.createTerm(text);
        }
       
      };
    }
 
View Full Code Here

                TermDocs tDocs = reader.termDocs();
                try {
                    ItemStateManager ism = getContext().getItemStateManager();
                    for (NodeId id : removedIds) {
                        aggregateIds =
                            aggregateIds.createTerm(id.toString());
                        tDocs.seek(aggregateIds);
                        while (tDocs.next()) {
                            Document doc = reader.document(
                                    tDocs.doc(), FieldSelectors.UUID);
                            NodeId nId = new NodeId(doc.get(FieldNames.UUID));
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.