Package ch.tocco.nice2.enterprisesearch.impl.searchbuilder


package ch.tocco.nice2.enterprisesearch.impl.searchbuilder
  • Class
    Description
    Creates search conditions for dates.
     
     
     
    Adds wildcard at end of last term (results in "(myterm OR myterm*), if: * real search server is used and the search is not directly done one the database * term does not end with a number * term does not start with a quote (") * term does not end with a wildcard or question mark (* / ?) * term does not end with a brace (() * term does not end with a range operator (] / }) * term is longer than one char A phone number and an iban are handled on their own: their spaces are removed and they always get the wildcard.
    Adds wildcard at begin and end of every single term, if: * term does not start with a quote
    Closes quotes at end of last term in case of uneven count of quotes.
    SearchTerm is the representation of a lucene search term, which can handle parentheses, asterisks and field prefixes.