RE: Spaces in regular expressions

2016-02-26 Thread Uwe Schindler
@gmail.com] > Sent: Thursday, February 25, 2016 7:58 PM > To: java-user@lucene.apache.org > Subject: Re: Spaces in regular expressions > > Thank you, I had looked at that article a little, some time ago. I was > thinking I may have to change some lower level Lucene classes to be

Re: Spaces in regular expressions

2016-02-25 Thread Kudrettin Güleryüz
t; your > > > > > > > best bet is to keep a copy of the source text in a separate > string > > > > (not > > > > > > > tokenized text) field and then you can do a complex regex that > > > spans > > > > > > terms > > > &g

Re: Spaces in regular expressions

2016-02-25 Thread Greg Bowyer
n a separate string > > > (not > > > > > > tokenized text) field and then you can do a complex regex that > > spans > > > > > terms > > > > > > (and only do that if normal span queries don't do what you

Re: Spaces in regular expressions

2016-02-24 Thread Kudrettin Güleryüz
> > > > > > > > > -- Jack Krupansky > > > > > > > > > > On Sat, Feb 13, 2016 at 1:25 PM, Uwe Schindler > > > wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > T

Re: Spaces in regular expressions

2016-02-15 Thread Jack Krupansky
t; > > > > That's very easy to explain: Regexp queries only work on terms, you > > > > > already said it in your introduction. There is no phrase query in > > > Lucene > > > > > that accepts regular expressions. > > > > &g

Re: Spaces in regular expressions

2016-02-15 Thread Kudrettin Güleryüz
t; > > > > > > > That's very easy to explain: Regexp queries only work on terms, you > > > > already said it in your introduction. There is no phrase query in > > Lucene > > > > that accepts regular expressions. > >

Re: Spaces in regular expressions

2016-02-13 Thread Jack Krupansky
o phrase query in > Lucene > > > that accepts regular expressions. > > > > > > Uwe > > > > > > - > > > Uwe Schindler > > > H.-H.-Meier-Allee 63, D-28213 Bremen > > > http://www.thetaphi.de > > > eMail: u...@thetaph

Re: Spaces in regular expressions

2016-02-13 Thread Kudrettin Güleryüz
> > -Original Message- > > > From: Kudrettin Güleryüz [mailto:kudret...@gmail.com] > > > Sent: Saturday, February 13, 2016 7:14 PM > > > To: java-user@lucene.apache.org > > > Subject: Spaces in regular expressions > > > > > > Hello

Re: Spaces in regular expressions

2016-02-13 Thread Jack Krupansky
Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > -Original Message- > > From: Kudrettin Güleryüz [mailto:kudret...@gmail.com] > > Sent: Saturday, February 13, 2016 7:14 PM > > To: java-user@lucene.apache.org > > Subject: Spaces in regular

RE: Spaces in regular expressions

2016-02-13 Thread Uwe Schindler
hi.de > -Original Message- > From: Kudrettin Güleryüz [mailto:kudret...@gmail.com] > Sent: Saturday, February 13, 2016 7:14 PM > To: java-user@lucene.apache.org > Subject: Spaces in regular expressions > > Hello, > > I am using standard whitespace analyzer to inde

Spaces in regular expressions

2016-02-13 Thread Kudrettin Güleryüz
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 matc