Searched defs:text (Results 1 - 25 of 90) sorted by relevance

1234

/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/
H A Dxml.rb32 # element.text = "blah" should work
33 def text=(x)
/lucene-3.6.0/lucene/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/
H A DTestMultiSegmentReaderOnConstructor.java67 private void addDocument(IndexWriter iw, String text) throws IOException { argument
69 doc.add(new Field("field", text, Field.Store.NO, Field.Index.ANALYZED));
H A DTestUnoptimizedReaderOnConstructor.java66 private void addDocument(IndexWriter iw, String text) throws IOException { argument
68 doc.add(new Field("field", text, Field.Store.NO, Field.Index.ANALYZED));
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/
H A DTextableQueryNode.java27 void setText(CharSequence text); argument
H A DQuotedFieldQueryNode.java33 * @param text
40 public QuotedFieldQueryNode(CharSequence field, CharSequence text, int begin, argument
42 super(field, text, begin, end);
57 + "' field='" + this.field + "' term='" + this.text + "'/>";
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DFormatPostingsTermsConsumer.java33 abstract FormatPostingsDocsConsumer addTerm(char[] text, int start) throws IOException; argument
36 FormatPostingsDocsConsumer addTerm(String text) throws IOException { argument
37 final int len = text.length();
40 text.getChars(0, len, termBuffer, 0);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/
H A DEscapeQuerySyntax.java32 * @param text
33 * - text to be escaped
38 * @return escaped text
40 CharSequence escape(CharSequence text, Locale locale, Type type); argument
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/
H A DPrefixWildcardQueryNode.java35 * @param text
42 public PrefixWildcardQueryNode(CharSequence field, CharSequence text, argument
44 super(field, text, begin, end);
53 return "<prefixWildcard field='" + this.field + "' term='" + this.text
H A DWildcardQueryNode.java33 * @param text
40 public WildcardQueryNode(CharSequence field, CharSequence text, int begin, argument
42 super(field, text, begin, end);
60 return "<wildcard field='" + this.field + "' term='" + this.text + "'/>";
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/
H A DWildcardQueryNodeProcessor.java58 CharSequence text = fqn.getText();
64 || text.length() <= 0){
71 if (isPrefixWildcard(text)) {
75 } else if (isWildcard(text)){
86 private boolean isWildcard(CharSequence text) { argument
87 if (text ==null || text.length() <= 0) return false;
91 for(int i=text.length()-1; i>=0; i--){
92 if ((text.charAt(i) == '*' || text
100 isPrefixWildcard(CharSequence text) argument
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestDateSort.java43 private static final String TEXT_FIELD = "text";
57 // Add the first document. text = "Document 1" dateTime = Oct 10 03:25:22 EDT 2007
59 // Add the second document. text = "Document 2" dateTime = Oct 10 03:25:26 EDT 2007
61 // Add the third document. text = "Document 3" dateTime = Oct 11 07:12:13 EDT 2007
63 // Add the fourth document. text = "Document 4" dateTime = Oct 11 08:02:09 EDT 2007
66 // Add the fifth document. text = "Document 5" dateTime = Oct 12 13:25:43 EDT 2007
93 String text = document.get(TEXT_FIELD);
94 actualOrder[i] = text;
109 private Document createDocument(String text, long time) { argument
112 // Add the text fiel
[all...]
H A DTestFuzzyQuery.java384 private void addDoc(String text, RandomIndexWriter writer) throws IOException { argument
386 doc.add(newField("field", text, Field.Store.YES, Field.Index.ANALYZED));
H A DTestMatchAllDocsQuery.java125 private void addDoc(String text, IndexWriter iw, float boost) throws IOException { argument
127 Field f = newField("key", text, Field.Store.YES, Field.Index.ANALYZED);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestDateSort.java43 private static final String TEXT_FIELD = "text";
57 // Add the first document. text = "Document 1" dateTime = Oct 10 03:25:22 EDT 2007
59 // Add the second document. text = "Document 2" dateTime = Oct 10 03:25:26 EDT 2007
61 // Add the third document. text = "Document 3" dateTime = Oct 11 07:12:13 EDT 2007
63 // Add the fourth document. text = "Document 4" dateTime = Oct 11 08:02:09 EDT 2007
66 // Add the fifth document. text = "Document 5" dateTime = Oct 12 13:25:43 EDT 2007
93 String text = document.get(TEXT_FIELD);
94 actualOrder[i] = text;
109 private Document createDocument(String text, long time) { argument
112 // Add the text fiel
[all...]
H A DTestFuzzyQuery.java384 private void addDoc(String text, RandomIndexWriter writer) throws IOException { argument
386 doc.add(newField("field", text, Field.Store.YES, Field.Index.ANALYZED));
H A DTestMatchAllDocsQuery.java125 private void addDoc(String text, IndexWriter iw, float boost) throws IOException { argument
127 Field f = newField("key", text, Field.Store.YES, Field.Index.ANALYZED);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/cjk/
H A DCJKWidthFilter.java63 char text[] = termAtt.buffer();
66 final char ch = text[i];
69 text[i] -= 0xFEE0;
72 if ((ch == 0xFF9E || ch == 0xFF9F) && i > 0 && combine(text, i, ch)) {
73 length = StemmerUtil.delete(text, i--, length);
75 text[i] = KANA_NORM[ch - 0xFF65];
102 private static boolean combine(char text[], int pos, char ch) { argument
103 final char prev = text[pos-1];
105 text[pos-1] += (ch == 0xFF9F)
108 return text[po
[all...]
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/
H A DReport.java25 private String text; field in class:Report
30 public Report (String text, int size, int reported, int outOf) { argument
31 this.text = text;
52 * Returns the report text.
55 return text;
/lucene-3.6.0/solr/core/src/test/org/apache/solr/analysis/
H A DTestMultiWordSynonyms.java66 String text; field in class:TestMultiWordSynonyms.StringMockSolrResourceLoader
68 StringMockSolrResourceLoader(String text) { argument
69 this.text = text;
81 return new ByteArrayInputStream(text.getBytes("UTF-8"));
/lucene-3.6.0/solr/core/src/test/org/apache/solr/spelling/
H A DTestSuggestSpellingConverter.java68 public void assertConvertsTo(String text, String expected[]) throws IOException { argument
69 Collection<Token> tokens = converter.convert(text);
/lucene-3.6.0/solr/test-framework/src/java/org/apache/solr/analysis/
H A DStringMockSolrResourceLoader.java29 String text; field in class:StringMockSolrResourceLoader
31 StringMockSolrResourceLoader(String text) { argument
32 this.text = text;
36 return Arrays.asList(text.split("\n"));
44 return new ByteArrayInputStream(text.getBytes("UTF-8"));
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/search/
H A DCategoryListIteratorTest.java64 public DataTokenStream(String text, IntEncoder encoder) throws IOException { argument
66 term.setEmpty().append(text);
/lucene-3.6.0/lucene/contrib/highlighter/src/test/org/apache/lucene/search/vectorhighlight/
H A DBreakIteratorBoundaryScannerTest.java20 import java.text.BreakIterator;
27 "Apache Lucene(TM) is a high-performance, full-featured text search engine library written entirely in Java." +
29 "full-text search, especially cross-platform. \nApache Lucene is an open source project available for free download.";
32 StringBuilder text = new StringBuilder(TEXT);
37 assertEquals(start, scanner.findStartOffset(text, start));
38 assertEquals(start, scanner.findEndOffset(text, start));
40 assertEquals(start, scanner.findStartOffset(text, start));
42 assertEquals(start, scanner.findEndOffset(text, start));
46 StringBuilder text = new StringBuilder(TEXT);
52 testFindStartOffset(text, star
84 testFindStartOffset(StringBuilder text, int start, int expected, BoundaryScanner scanner) argument
88 testFindEndOffset(StringBuilder text, int start, int expected, BoundaryScanner scanner) argument
[all...]
/lucene-3.6.0/lucene/contrib/icu/src/test/org/apache/lucene/analysis/icu/segmentation/
H A DTestLaoBreakIterator.java25 import com.ibm.icu.text.BreakIterator;
26 import com.ibm.icu.text.RuleBasedBreakIterator;
27 import com.ibm.icu.text.UTF16;
44 char text[] = sourceText.toCharArray();
46 ci.setText(text, 0, text.length);
54 } while (end != BreakIterator.DONE && !isWord(text, start, end));
57 assertEquals(tokens[i], new String(text, start, end - start));
63 protected boolean isWord(char text[], int start, int end) { argument
66 codepoint = UTF16.charAt(text,
[all...]
/lucene-3.6.0/lucene/contrib/queries/src/test/org/apache/lucene/search/similar/
H A DTestMoreLikeThis.java67 private void addDoc(RandomIndexWriter writer, String text) throws IOException { argument
69 doc.add(newField("text", text, Field.Store.YES, Field.Index.ANALYZED));
81 mlt.setFieldNames(new String[] {"text"});
90 "lucene release"), "text");
99 Float termBoost = originalValues.get(tq.getTerm().text());
100 assertNotNull("Expected term " + tq.getTerm().text(), termBoost);
104 + tq.getTerm().text() + "' got " + tq.getBoost(), totalBoost, tq
116 mlt.setFieldNames(new String[] {"text"});
119 "lucene release"), "text");
[all...]

Completed in 130 milliseconds

1234