jmorph99 opened a new pull request #615: Intervals Query Parser URL: https://github.com/apache/lucene-solr/pull/615 A query parser that converts syntax to an intervals query. This is a completely stand-alone query parser with the sole use of building an query of intervals. One class IntervalsQueryParser One public method getQuery that passes in field name and query and returns an IntervalsQuery One test class TestIntervalsQueryParser Examples a b or(a,b) a b c or(a,b,c) (a b c) or(a,b,c) a /5 b MAXWIDTH/5(UNORDERED(a,b)) (a /5 b) c or(MAXWIDTH/5(UNORDERED(a,b)),c) "a b" BLOCK(a,b) "a b v" BLOCK(a,b,v) ((((a /3 "b f g") /3 c) /3 d) /3 e) MAXWIDTH/3(UNORDERED(MAXWIDTH/3(UNORDERED(MAXWIDTH/3(UNORDERED(MAXWIDTH/3(UNORDERED(a,BLOCK(b,f,g))),c)),d)),e)) (a /3 (b /3 (c /3 (d /3 e)))) MAXWIDTH/3(UNORDERED(a,MAXWIDTH/3(UNORDERED(b,MAXWIDTH/3(UNORDERED(c,MAXWIDTH/3(UNORDERED(d,e)))))))) (can could) /12 "figur*" MAXWIDTH/12(UNORDERED(or(can,could),MultiTerm(figur*))) (search*) /75 (could* /10 "lat* night") MAXWIDTH/75(UNORDERED(MultiTerm(search*),MAXWIDTH/10(UNORDERED(MultiTerm(could*),BLOCK(MultiTerm(lat*),night))))) "can* expect*" BLOCK(MultiTerm(can*),MultiTerm(expect*)) "(can might) expect*" BLOCK(or(can,might),MultiTerm(expect*)) "(red green blue)(cluster* node* shard*)" BLOCK(or(red,green,blue),or(MultiTerm(cluster*),MultiTerm(node*),MultiTerm(shard*)))
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org