Lucene example source code file (TermsQuery.xml)
The Lucene TermsQuery.xml source code
<?xml version="1.0" encoding="UTF-8"?> <!-- TermsQuery uses an analyzer to tokenize text and creates a BooleanQuery with nested "should" TermQueries for each of the tokens encountered. This can be used for user input which may include content or characters that would otherwise be illegal query syntax when using the standard lucene query parser. Of course the downside is that none of the query operators (AND NOT ~ ^ : etc) will have an effect. For some scenarios queries are not formed by people familiar with Lucene query syntax and they can inadvertently type illegal query syntax so in these cases this is an appropriate and simple alternative --> <TermsQuery fieldName="contents">sumitomo bank
Other Lucene examples (source code examples)
Here is a short list of links related to this Lucene TermsQuery.xml source code file:
Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.