add --shared
[pylucene.git] / lucene-java-3.4.0 / lucene / contrib / xml-query-parser / src / test / org / apache / lucene / xmlparser / TermsQuery.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2                 <!-- TermsQuery uses an analyzer to tokenize text and creates a BooleanQuery with nested
3                         "should" TermQueries for each of the tokens encountered. This can be used for user input
4                         which may include content or characters that would otherwise be illegal query syntax when
5                         using the standard lucene query parser. Of course the downside is that none of the query 
6                         operators (AND NOT ~ ^ : etc) will have an effect. For some scenarios queries are
7                         not formed by people familiar with Lucene query syntax and they can inadvertently type illegal
8                         query syntax so in these cases this is an appropriate and simple alternative
9                 --> 
10 <TermsQuery fieldName="contents">sumitomo bank</TermsQuery>