/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/regex/ |
H A D | JavaUtilRegexCapabilities.java | 30 private Pattern pattern; field in class:JavaUtilRegexCapabilities 69 public void compile(String pattern) { argument 70 this.pattern = Pattern.compile(pattern, this.flags); 74 return pattern.matcher(string).matches(); 88 if (pattern != null ? !pattern.equals(that.pattern) : that.pattern != null) return false; 95 return (pattern ! [all...] |
H A D | RegexCapabilities.java | 28 * expression pattern. 30 * @param pattern regular expression pattern 32 void compile(String pattern); argument 37 * @return true if string matches the pattern last passed to {@link #compile}. 45 * @return static non-regex prefix of the pattern last passed to {@link #compile}. May return null.
|
H A D | JakartaRegexpCapabilities.java | 82 public void compile(String pattern) { argument 83 regexp = new RE(pattern, this.flags);
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/ |
H A D | RegexFileFilter.java | 25 * Accepts any file whose name matches the pattern 30 final Pattern pattern; field in class:RegexFileFilter 35 pattern = regex; 38 return pattern.matcher(f.getName()).matches(); 42 return "regex:" + pattern.toString();
|
/lucene-3.6.0/solr/test-framework/src/java/org/apache/solr/analysis/ |
H A D | MockTokenizerFactory.java | 30 int pattern; field in class:MockTokenizerFactory 35 String patternArg = args.get("pattern"); 41 pattern = MockTokenizer.WHITESPACE; 43 pattern = MockTokenizer.KEYWORD; 45 pattern = MockTokenizer.SIMPLE; 47 throw new RuntimeException("invalid pattern!"); 55 MockTokenizer t = new MockTokenizer(input, pattern, false);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | WildcardTermEnum.java | 98 * Determines if a word matches a wildcard pattern. 102 public static final boolean wildcardEquals(String pattern, int patternIdx, argument 111 // End of pattern yet? 112 boolean pEnd = (p >= pattern.length()); 117 // Assume the only thing left on the pattern is/are wildcards 122 // While we haven't found the end of the pattern, 124 while (wildcardSearchPos < pattern.length() && justWildcardsLeft) 127 char wildchar = pattern.charAt(wildcardSearchPos); 130 // pattern information after this/these wildcards. 155 // If we've gone past the end of the string, or the pattern, [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/miscellaneous/ |
H A D | PatternAnalyzer.java | 138 private final Pattern pattern; field in class:PatternAnalyzer 148 * @param pattern 163 public PatternAnalyzer(Version matchVersion, Pattern pattern, boolean toLowerCase, Set<?> stopWords) { argument 164 if (pattern == null) 165 throw new IllegalArgumentException("pattern must not be null"); 167 if (eqPattern(NON_WORD_PATTERN, pattern)) pattern = NON_WORD_PATTERN; 168 else if (eqPattern(WHITESPACE_PATTERN, pattern)) pattern = WHITESPACE_PATTERN; 172 this.pattern 326 private final Pattern pattern; field in class:PatternAnalyzer.PatternTokenizer 335 PatternTokenizer(Reader input, String str, Pattern pattern, boolean toLowerCase) argument [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/ |
H A D | PatternConsumer.java | 23 * This interface is used to connect the XML pattern file parser to the 50 * @param pattern the pattern 53 void addPattern(String pattern, String values); argument
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/ |
H A D | PatternReplaceCharFilter.java | 29 * The pattern match will be done in each "block" in char stream. 32 * ex1) source="aa bb aa bb", pattern="(aa)\\s+(bb)" replacement="$1#$2"<br/> 41 * ex2) source="aa123bb", pattern="(aa)\\d+(bb)" replacement="$1 $2"<br/> 54 private final Pattern pattern; field in class:PatternReplaceCharFilter 58 public PatternReplaceCharFilter(Pattern pattern, String replacement, CharStream in) { argument 60 this.pattern = pattern; 65 public PatternReplaceCharFilter(Pattern pattern, String replacement, argument 67 this(pattern, replacement, in); 91 * Replace pattern i [all...] |
H A D | PatternTokenizer.java | 30 * This tokenizer uses regex pattern matching to construct distinct tokens 31 * for the input stream. It takes two arguments: "pattern" and "group". 34 * <li>"pattern" is the regular expression.</li> 45 * pattern = \'([^\']+)\' 65 private final Pattern pattern; field in class:PatternTokenizer 70 public PatternTokenizer(Reader input, Pattern pattern, int group) throws IOException { argument 72 this.pattern = pattern; 75 matcher = pattern.matcher(str);
|
H A D | PatternTokenizerFactory.java | 35 * This tokenizer uses regex pattern matching to construct distinct tokens 36 * for the input stream. It takes two arguments: "pattern" and "group". 39 * <li>"pattern" is the regular expression.</li> 50 * pattern = \'([^\']+)\' 62 * <tokenizer class="solr.PatternTokenizerFactory" pattern="\'([^\']+)\'" group="1"/> 72 public static final String PATTERN = "pattern"; 75 protected Pattern pattern; field in class:PatternTokenizerFactory 79 * Require a configured pattern 90 pattern = Pattern.compile( regex, flags ); 105 * Split the input using configured pattern [all...] |
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/ |
H A D | MockTokenizer.java | 50 private final int pattern; field in class:MockTokenizer 75 public MockTokenizer(AttributeFactory factory, Reader input, int pattern, boolean lowerCase, int maxTokenLength) { argument 77 this.pattern = pattern; 83 public MockTokenizer(Reader input, int pattern, boolean lowerCase, int maxTokenLength) { argument 84 this(AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY, input, pattern, lowerCase, maxTokenLength); 87 public MockTokenizer(Reader input, int pattern, boolean lowerCase) { argument 88 this(input, pattern, lowerCase, DEFAULT_MAX_TOKEN_LENGTH); 154 switch(pattern) { 158 default: throw new RuntimeException("invalid pattern constan [all...] |
H A D | MockAnalyzer.java | 45 private final int pattern; field in class:MockAnalyzer 59 * @param pattern pattern constant describing how tokenization should happen 64 public MockAnalyzer(Random random, int pattern, boolean lowerCase, CharArraySet filter, boolean enablePositionIncrements) { argument 66 this.pattern = pattern; 74 * MockAnalyzer(random, pattern, lowerCase, CharArraySet.EMPTY_STOPSET, false}). 76 public MockAnalyzer(Random random, int pattern, boolean lowerCase) { argument 77 this(random, pattern, lowerCase, CharArraySet.EMPTY_SET, false); 92 MockTokenizer tokenizer = new MockTokenizer(reader, pattern, lowerCas [all...] |
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/analysis/ |
H A D | MockTokenizer.java | 49 private final int pattern; field in class:MockTokenizer 73 public MockTokenizer(AttributeFactory factory, Reader input, int pattern, boolean lowerCase, int maxTokenLength) { argument 75 this.pattern = pattern; 81 public MockTokenizer(Reader input, int pattern, boolean lowerCase, int maxTokenLength) { argument 82 this(AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY, input, pattern, lowerCase, maxTokenLength); 85 public MockTokenizer(Reader input, int pattern, boolean lowerCase) { argument 86 this(input, pattern, lowerCase, DEFAULT_MAX_TOKEN_LENGTH); 141 switch(pattern) { 145 default: throw new RuntimeException("invalid pattern constan [all...] |
H A D | MockAnalyzer.java | 45 private final int pattern; field in class:MockAnalyzer 58 * @param pattern pattern constant describing how tokenization should happen 63 public MockAnalyzer(Random random, int pattern, boolean lowerCase, CharArraySet filter, boolean enablePositionIncrements) { argument 65 this.pattern = pattern; 73 * MockAnalyzer(random, pattern, lowerCase, CharArraySet.EMPTY_STOPSET, false}). 75 public MockAnalyzer(Random random, int pattern, boolean lowerCase) { argument 76 this(random, pattern, lowerCase, CharArraySet.EMPTY_SET, false); 91 MockTokenizer tokenizer = new MockTokenizer(reader, pattern, lowerCas [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/hunspell/ |
H A D | HunspellAffix.java | 39 * Checks whether the given text matches the conditional pattern on this affix 41 * @param text Text to check if it matches the affix's conditional pattern 115 * @param pattern Condition as a regular expression pattern 117 public void setCondition(String condition, String pattern) { argument 119 this.conditionPattern = Pattern.compile(pattern);
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/analysis/ |
H A D | TestPatternReplaceCharFilter.java | 49 args.put("pattern", "(aa)\\s+(bb)\\s+(cc)"); 68 args.put("pattern", "(aa)\\s+(bb)\\s+(cc)"); 83 args.put("pattern", "(aa)\\s+(bb)\\s+(cc)"); 102 CharStream cs = new PatternReplaceCharFilter( pattern("(aa)\\s+(bb)\\s+(cc)"), "$1##$2###$3", 117 CharStream cs = new PatternReplaceCharFilter( pattern("a"), "aa", 133 CharStream cs = new PatternReplaceCharFilter( pattern("(aa)\\s+(bb)\\s+(cc)"), "$1#$2", 149 CharStream cs = new PatternReplaceCharFilter( pattern("(aa)\\s+(bb)\\s+(cc)"), "$1 $2 $3", 165 CharStream cs = new PatternReplaceCharFilter( pattern("(aa)\\s+(bb)"), "$1##$2", 181 CharStream cs = new PatternReplaceCharFilter( pattern("a"), "aa", 183 cs = new PatternReplaceCharFilter( pattern("b 193 private Pattern pattern( String p ){ method in class:TestPatternReplaceCharFilter [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/ |
H A D | SrndTruncQuery.java | 43 private Pattern pattern; field in class:SrndTruncQuery 77 pattern = Pattern.compile(re.toString()); 88 Matcher matcher = pattern.matcher("");
|
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/request/ |
H A D | standard.rb | 328 if regex[:pattern] 329 if regex[:pattern].kind_of? Hash 330 if regex[:pattern][:default] 331 hash["hl.regex.pattern"] = regex[:pattern][:default] 333 if regex[:pattern][:fields] 334 regex[:pattern][:fields].each do |k,v| 335 hash["f.#{k}.hl.regex.pattern"] = v 339 hash["hl.regex.pattern"] = regex[:pattern] [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestWildcardRandom.java | 92 private void assertPatternHits(String pattern, int numHits) throws Exception { argument 94 Query wq = new WildcardQuery(new Term("field", fillPattern(pattern))); 96 assertEquals("Incorrect hits for pattern: " + pattern, numHits, docs.totalHits);
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestWildcardRandom.java | 92 private void assertPatternHits(String pattern, int numHits) throws Exception { argument 94 Query wq = new WildcardQuery(new Term("field", fillPattern(pattern))); 96 assertEquals("Incorrect hits for pattern: " + pattern, numHits, docs.totalHits);
|
/lucene-3.6.0/lucene/contrib/icu/src/tools/java/org/apache/lucene/analysis/icu/ |
H A D | GenerateHTMLStripCharFilterSupplementaryMacros.java | 71 static void outputMacro(String name, String pattern) { argument 72 UnicodeSet set = new UnicodeSet(pattern);
|
H A D | GenerateJFlexSupplementaryMacros.java | 85 static void outputMacro(String name, String pattern) { argument 86 UnicodeSet set = new UnicodeSet(pattern);
|
/lucene-3.6.0/lucene/contrib/analyzers/phonetic/src/java/org/apache/lucene/analysis/phonetic/ |
H A D | BeiderMorseFilter.java | 51 private static final Pattern pattern = Pattern.compile("([^()|-]+)"); field in class:BeiderMorseFilter 54 private final Matcher matcher = pattern.matcher("");
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/ |
H A D | SolrException.java | 222 Pattern pattern = Pattern.compile(regex); 223 Matcher matcher = pattern.matcher(m);
|