home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Lucene example source code file (BooleanFilter.xml)

This example Lucene source code file (BooleanFilter.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Lucene tags/keywords

booleanfilter, booleanfilter, clause, clause, emcore, filter, filter, filteredquery, matchalldocsquery, query, query, rangefilter, this, utf-8

The Lucene BooleanFilter.xml source code

<?xml version="1.0" encoding="UTF-8"?>
			This query illustrates how a BooleanFilter can be used to combine
			multiple filters in the same way BooleanQueries can be combined
			with must, should and mustnot clauses
			<Clause occurs="should">
				<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
			<Clause occurs="mustNot">
				<TermsFilter fieldName="contents">Emcore 

Other Lucene examples (source code examples)

Here is a short list of links related to this Lucene BooleanFilter.xml source code file:

my book on functional programming


new blog posts


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.