RE: Multiline Regex with Lucene

2009-07-29 Thread Steven A Rowe
ation is not due to the Spans implementation. Steve > -Original Message- > From: ba3 [mailto:sbadhrin...@gmail.com] > Sent: Wednesday, July 29, 2009 12:56 PM > To: java-user@lucene.apache.org > Subject: RE: Multiline Regex with Lucene > > > Hi Steve, > > I we

Re: Multiline Regex with Lucene

2009-07-29 Thread Mark Miller
ng the end of the > > span. > > > > If the article doesn't do it for you, I need more information to be able > > to help. Can you give an example of what you want to do? > > > > Thanks, > > Steve > > > >> -Original Message- > &

RE: Multiline Regex with Lucene

2009-07-29 Thread ba3
e doesn't do it for you, I need more information to be able > to help. Can you give an example of what you want to do? > > Thanks, > Steve > >> -Original Message- >> From: ba3 [mailto:sbadhrin...@gmail.com] >> Sent: Tuesday, July 28, 2009 10:39 PM >

RE: Multiline Regex with Lucene

2009-07-29 Thread Steven A Rowe
help. Can you give an example of what you want to do? Thanks, Steve > -Original Message- > From: ba3 [mailto:sbadhrin...@gmail.com] > Sent: Tuesday, July 28, 2009 10:39 PM > To: java-user@lucene.apache.org > Subject: RE: Multiline Regex with Lucene > > > H

RE: Multiline Regex with Lucene

2009-07-28 Thread ba3
lucene/search/regex/SpanRegexQuery.html > > > Steve > >> -Original Message- >> From: ba3 [mailto:sbadhrin...@gmail.com] >> Sent: Tuesday, July 28, 2009 12:53 PM >> To: java-user@lucene.apache.org >> Subject: Re: Multiline Regex with Lucene >>

RE: Multiline Regex with Lucene

2009-07-28 Thread Steven A Rowe
2_4_1/api/org/apache/lucene/search/regex/SpanRegexQuery.html Steve > -Original Message- > From: ba3 [mailto:sbadhrin...@gmail.com] > Sent: Tuesday, July 28, 2009 12:53 PM > To: java-user@lucene.apache.org > Subject: Re: Multiline Regex with Lucene > > > Hi, >

RE: Multiline Regex with Lucene

2009-07-28 Thread Uwe Schindler
: Re: Multiline Regex with Lucene > > > Hi, > > Thanks for the pointers. I will try the span queries. > But can span query support regexp as a term ? > > Also for more details in the problem : > The problem is like this: > find a search string inside a block o

Re: Multiline Regex with Lucene

2009-07-28 Thread ba3
Hi, Thanks for the pointers. I will try the span queries. But can span query support regexp as a term ? Also for more details in the problem : The problem is like this: find a search string inside a block of statements. The block starts with a string and ends with a character.

Re: Multiline Regex with Lucene

2009-07-28 Thread Erick Erickson
I doubt you're thinking in terms of tokens. Your inputstream is broken up into tokens (think of them as words, depending upon the analyzer) and regex searchers are confined to those *tokens*. So the concept of a multi-line regex in a search is kind of ...odd... You could possibly index your input

RE: Multiline Regex with Lucene

2009-07-28 Thread Steven A Rowe
strictive Analyzer, e.g. WhitespaceAnalyzer, which just breaks text at whitespace sequences, and doesn't modify the resulting terms any further. Steve > -Original Message- > From: ba3 [mailto:sbadhrin...@gmail.com] > Sent: Monday, July 27, 2009 9:29 PM > To: java-user@lucene

RE: Multiline Regex with Lucene

2009-07-27 Thread ba3
Hi Steve, I had used the standardanalyzer. Should a different one be used ? -- Ba3 Steven A Rowe wrote: > > Hi ba3, > > What analyzer did you use when indexing the content field? > > Steve > >> -Original Message- >> From: ba3 >> Sent: Sunday, July 26, 2009 9:53 AM >> To: java-user@

RE: Multiline Regex with Lucene

2009-07-27 Thread Steven A Rowe
Hi ba3, What analyzer did you use when indexing the content field? Steve > -Original Message- > From: ba3 [mailto:sbadhrin...@gmail.com] > Sent: Sunday, July 26, 2009 9:53 AM > To: java-user@lucene.apache.org > Subject: Multiline Regex with Lucene > > > I was trying to do a regex searc