Examples of createTerm()


Examples of it.unibz.instasearch.indexing.Field.createTerm()

   
    Term t = termQuery.getTerm();
   
    if( termField == null && aliases.containsKey(t.field()) ) {
      Field field = aliases.get(t.field());
      Term newTerm = field.createTerm(t.text());
      TermQuery newTermQuery = new TermQuery(newTerm);
      return newTermQuery;
    }
   
    return super.visit(termQuery, termField);
View Full Code Here

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

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

   
    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

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

        //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

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

        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

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

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

        {
          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

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

        {
          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

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

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

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
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.