+
hotel+luxury
will search for accommodations containing both hotel
and luxury
.|
hotel | luxury
will search for documents containing either hotel
or luxury
or both.-
hotel
–luxury
will search for accommodations that have the hotel
term and/or do not have luxury
.*
lux*
will search for accommodations that have a term that starts with lux
, ignoring case." "
City Motel
(without quotes) would search for documents containing City
and/or Motel
anywhere in any order, "City Motel"
(with quotes) will only match documents that contain that whole phrase together and in that order (text analysis still applies).( )
motel+(engelberg | luxury)
will search for documents containing the motel term and either engelberg
or luxury
(or both).|luxury\\+hotel
will result in the term luxury+hotel
. In order to make things simple for the more typical cases, there are two exceptions to this rule where escaping is not needed:-
only needs to be escaped if it's the first character after whitespace, not if it's in the middle of a term. For example, wi-fi
is a single term*
needs to be escaped only if it's the last character before whitespace, not if it's in the middle of a term. For example, wi*fi
is treated as a single token.