lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kudrettin Güleryüz <kudret...@gmail.com>
Subject Spaces in regular expressions
Date Sat, 13 Feb 2016 18:13:36 GMT
Hello,

I am using standard whitespace analyzer to index a source code document
using Lucene 5.

I understand that a document with content foo bar would have only two
terms: foo and bar.  When I search for "foo bar" it normally matches the
document. Similarly a regexp query /foo/ or /bar/ also matches the
document.

Can you help me understand why doesn't a regexp query like /foo bar/
doesn't match the document?

Thank you,
Kudret

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message