Searched defs:type (Results 1 - 25 of 55) sorted by relevance

123

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/
H A DTypeAttribute.java23 * A Token's lexical type. The Default value is "word".
27 /** the default type */
30 /** Returns this Token's lexical type. Defaults to "word". */
31 public String type(); method in interface:TypeAttribute
33 /** Set the lexical type.
34 @see #type() */
35 public void setType(String type); argument
H A DTypeAttributeImpl.java25 * A Token's lexical type. The Default value is "word".
28 private String type; field in class:TypeAttributeImpl
34 public TypeAttributeImpl(String type) { argument
35 this.type = type;
38 /** Returns this Token's lexical type. Defaults to "word". */
39 public String type() { method in class:TypeAttributeImpl
40 return type;
43 /** Set the lexical type.
44 @see #type() */
45 setType(String type) argument
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/
H A DEscapeQuerySyntax.java36 * @param type
37 * - select the type of escape operation to use
40 CharSequence escape(CharSequence text, Locale locale, Type type); argument
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestNRTReaderWithThreads.java79 int type; field in class:TestNRTReaderWithThreads.RunThread
82 public RunThread(int type, IndexWriter writer) { argument
83 this.type = type;
92 if (type == 0) {
97 } else if (type == 1) {
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestNRTReaderWithThreads.java79 int type; field in class:TestNRTReaderWithThreads.RunThread
82 public RunThread(int type, IndexWriter writer) { argument
83 this.type = type;
92 if (type == 0) {
97 } else if (type == 1) {
/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/
H A DTestValueSourceCache.java76 for (String type : types) {
77 tryQuerySameTypes(template, nums, type);
86 void tryQuerySameTypes(String template, String numbers, String type) { argument
93 String type2 = type.replace("val1", "val2");
97 s1 = s1.replace(patV, type).replace(patN, numParts[idx]);
98 s2 = s2.replace(patV, type).replace(patN, numParts[idx]);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/
H A DNumericConfig.java38 private NumericField.DataType type; field in class:NumericConfig
48 * @param type
49 * the numeric type used to index the numeric values
56 NumericField.DataType type) {
59 setType(type);
98 * Returns the numeric type used to index the numeric values
100 * @return the numeric type used to index the numeric values
103 return type;
107 * Sets the numeric type used to index the numeric values
109 * @param type th
55 NumericConfig(int precisionStep, NumberFormat format, NumericField.DataType type) argument
111 setType(NumericField.DataType type) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/function/
H A DFieldScoreQuery.java31 * <li>That token is parseable to the selected type.</li>
39 * When constructing this query, select the appropriate type. That type should match the data stored in the
40 * field. So in fact the "right" type should be selected before indexing. Type selection
62 * The type selected at search search time should match the data stored in the field.
99 * The <code>type</code> param tells how to parse the field string values into a numeric score value.
101 * @param type the type of the field: either
104 public FieldScoreQuery(String field, Type type) { argument
105 super(getValueSource(field,type));
109 getValueSource(String field, Type type) argument
[all...]
/lucene-3.6.0/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/
H A DTestLineEntityProcessor.java192 String type, // field type from schema.xml
200 vals.put("type", type);
190 createField( String col, String type, String srcCol, String re, String rw, String gn ) argument
/lucene-3.6.0/solr/contrib/uima/src/test/org/apache/solr/uima/ts/
H A DEntityAnnotation.java25 public final static int type = typeIndexID; field in class:EntityAnnotation
35 public EntityAnnotation(int addr, TOP_Type type) { argument
36 super(addr, type);
H A DSentimentAnnotation.java25 public final static int type = typeIndexID; field in class:SentimentAnnotation
35 public SentimentAnnotation(int addr, TOP_Type type) { argument
36 super(addr, type);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/
H A DTrieTokenizerFactory.java43 protected final TrieTypes type; field in class:TrieTokenizerFactory
45 public TrieTokenizerFactory(TrieTypes type, int precisionStep) { argument
46 this.type = type;
51 return new TrieTokenizer(input, type, precisionStep, TrieTokenizer.getNumericTokenStream(precisionStep));
58 protected final TrieTypes type; field in class:TrieTokenizer
68 public TrieTokenizer(Reader input, TrieTypes type, int precisionStep, NumericTokenStream ts) { argument
71 this.type = type;
92 switch (type) {
[all...]
H A DWordDelimiterIterator.java138 int type = charType(text[end]);
139 if (isBreak(lastType, type)) {
142 lastType = type;
154 * Return the type of the current subword.
155 * This currently uses the type of the first character in the subword.
157 * @return type of the current word
159 int type() { method in class:WordDelimiterIterator
164 int type = charType(text[current]);
165 switch (type) {
166 // return ALPHA word type fo
198 isBreak(int lastType, int type) argument
[all...]
/lucene-3.6.0/lucene/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/
H A DTestIndicesEquals.java610 private static Token createToken(String term, int start, int offset, String type) argument
612 return new Token(term, start, offset, type);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/core/
H A DPluginInfo.java29 * An Object which represents a Plugin of any type
33 public final String name, className, type; field in class:PluginInfo
38 public PluginInfo(String type, Map<String, String> attrs ,NamedList initArgs, List<PluginInfo> children) { argument
39 this.type = type;
49 type = node.getNodeName();
74 if (type != null) sb.append("type = " + type + ",");
91 public PluginInfo getChild(String type){ argument
100 getChildren(String type) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DAbstractSubTypeFieldType.java31 * The sub type can be obtained by either specifying the subFieldType attribute or the subFieldSuffix. In the former
33 * In the latter case, it will use an existing dynamic field definition to get the type. See the example schema and the
65 throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "The field type: " + typeName
78 * @param type The {@link FieldType} of the prototype.
82 static SchemaField registerPolyFieldDynamicPrototype(IndexSchema schema, FieldType type) { argument
83 String name = "*" + FieldType.POLY_FIELD_SEPARATOR + type.typeName;
85 //Just set these, delegate everything else to the field type
89 int p = SchemaField.calcProps(name, type, props);
91 type, p, null);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/plugin/
H A DAbstractPluginLoader.java42 private final String type; field in class:AbstractPluginLoader
47 * @param type is the 'type' name included in error messages.
50 public AbstractPluginLoader( String type, boolean preRegister, boolean requireName ) argument
52 this.type = type;
57 public AbstractPluginLoader( String type )
59 this( type, false, true );
136 String name = DOMUtil.getAttr(node,"name", requireName?type:null);
137 String className = DOMUtil.getAttr(node,"class", type);
[all...]
/lucene-3.6.0/solr/core/src/test/org/apache/solr/handler/
H A DAnalysisRequestHandlerTestBase.java37 assertEquals(info.getType(), token.get("type"));
57 private String type; field in class:AnalysisRequestHandlerTestBase.TokenInfo
68 String type,
78 this.type = type;
96 return type;
65 TokenInfo( String text, String rawText, String type, int start, int end, int position, int[] positionHistory, String payload, boolean match) argument
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/
H A DProximityQueryNode.java61 public ProximityType(Type type) { argument
62 this(type, 0);
65 public ProximityType(Type type, int distance) { argument
66 this.pType = type;
81 * @param type
82 * - type of proximity query
90 Type type, int distance, boolean inorder) {
93 this.proximityType = type;
96 if (type == Type.NUMBER) {
115 * @param type
89 ProximityQueryNode(List<QueryNode> clauses, CharSequence field, Type type, int distance, boolean inorder) argument
121 ProximityQueryNode(List<QueryNode> clauses, CharSequence field, Type type, boolean inorder) argument
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/
H A DEscapeQuerySyntaxImpl.java187 public CharSequence escape(CharSequence text, Locale locale, Type type) { argument
201 if (type == Type.STRING) {
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/
H A DNumericField.java128 * class is a wrapper around this token stream type for
135 /** Data type of the value in {@link NumericField}.
141 private DataType type; field in class:NumericField
212 assert type != null;
214 switch (type) {
260 /** Returns the data type of the current value, {@code null} if not yet set.
264 return type;
276 type = DataType.LONG;
289 type = DataType.INT;
302 type
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DFieldCacheSanityChecker.java327 private final InsanityType type; field in class:FieldCacheSanityChecker.Insanity
330 public Insanity(InsanityType type, String msg, CacheEntry... entries) { argument
331 if (null == type) {
339 this.type = type;
347 public InsanityType getType() { return type; }
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/junitcompat/
H A DTestReproduceMessage.java41 public static SoreType type; field in class:TestReproduceMessage
100 switch (type) {
124 type = SoreType.ASSUMPTION;
131 type = SoreType.ASSUMPTION;
138 type = SoreType.ASSUMPTION;
145 type = SoreType.ASSUMPTION;
152 type = SoreType.ASSUMPTION;
159 type = SoreType.ASSUMPTION;
166 type = SoreType.ASSUMPTION;
177 type
[all...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/
H A DLuceneJUnitResultFormatter.java259 * @param type the type of error
263 protected synchronized void formatError(String type, Test test, argument
269 append(formatTest(test) + type);
/lucene-3.6.0/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/
H A DDebugLogger.java100 if (debugStack.peek().type == DIHLogLevels.START_ENTITY
101 || debugStack.peek().type == DIHLogLevels.START_DOC) {
110 while (debugStack.pop().type != DIHLogLevels.START_ENTITY)
113 while (debugStack.pop().type != DIHLogLevels.START_DOC)
147 DIHLogLevels type = debugStack.peek().type;
148 if (type == DIHLogLevels.START_DOC || type == DIHLogLevels.START_ENTITY)
262 DIHLogLevels type; field in class:DebugLogger.DebugInfo
266 public DebugInfo(String name, DIHLogLevels type, DebugInf argument
[all...]

Completed in 728 milliseconds

123