jmorph99 opened a new pull request #604: Intervals Query Parser URL: https://github.com/apache/lucene-solr/pull/604 A query parser that converts syntax to an intervals query, 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
