************************ How to HACK ANts queries ************************ Since release beta0.2.6 ANts P2P uses Lucene as full text indexer. This means you can perform queries in a very expressive way! Let's make some examples... The former way to process queries was made up of three components: 1) AND queries ---> term1 + term2 (both terms are required to appear in any position) 2) OR queries ---> term1 term2 (a terms is required to appear in any position) 3) Exact match queries ---> "term1 term1" (an exact matching phrase has to appear in the file) these three elements can be combined in any way... So, what abou new features? Now basically there is a bunch of different possible queries you can perform using special characters: * TermQuery -> Single term queries (term1) * MultiTermQuery -> Multiple term queries (term2) * BooleanQuery -> Boolean queries (AND, OR etc...) * WildcardQuery -> i.e. queries with * or ? and so on... (term*) * PhraseQuery -> a complete phrase ("term1 term2") * FuzzyQuery -> return words that don't match exactly your search words (telm~) * RangeQuery -> [a TO z] {A TO z] etc. also with complex data (dates, numbers...) A complete reference: http://lucene.apache.org/java/2_4_0/queryparsersyntax.html IMPORTANT NOTE: IF YOU WANT TO USE LUCENE SYNTAX IN ANTS YOU MUST PUT YOUR QUERY BETWEEN DOUBLE QUOTES: i.e. "(term1 AND term2*) +term3" DON'T FORGET the "___" CAUSE YOUR QUERIES WON'T WORK AND YOU WILL RECEIVE VERY FEW RESULTS!