Re: How to use a regex search within a phrase query?

2016-05-23 Thread Erick Erickson
the index size. > For the general case, though, regular expressions may indeed require a full > index scan. Seems like all I can do in that case is to warn the user in > advance that this may take a (long) while. > > Any further ideas on how to reduce the performance hit and survive the

RE: How to use a regex search within a phrase query?

2016-05-23 Thread Erez Michalak
- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Sunday, May 22, 2016 7:43 PM To: solr-user Subject: Re: How to use a regex search within a phrase query? Erez: Before going too far down this path, understand that even if you can get this syntax to work, you're going to pay a _ve

Re: How to use a regex search within a phrase query?

2016-05-22 Thread Erick Erickson
y across term boundaries. The pure > regex is good as long I'm querying for a single term. > > > -Original Message- > From: Ahmet Arslan [mailto:iori...@yahoo.com] > Sent: Sunday, May 22, 2016 4:49 PM > To: solr-user@lucene.apache.org; Erez Michalak > Subje

RE: How to use a regex search within a phrase query?

2016-05-22 Thread Erez Michalak
ingle term. -Original Message- From: Ahmet Arslan [mailto:iori...@yahoo.com] Sent: Sunday, May 22, 2016 4:49 PM To: solr-user@lucene.apache.org; Erez Michalak Subject: Re: How to use a regex search within a phrase query? Hi Erez, I don't think it is possible to combine regex with ph

Re: How to use a regex search within a phrase query?

2016-05-22 Thread Ahmet Arslan
Hi Erez, I don't think it is possible to combine regex with phrase out-of-the-box. However, there is https://issues.apache.org/jira/browse/LUCENE-5205 for the task. Can't you define your query in terms of pure regex? something like /[0-9]{3} .* [0-9]{4}/ ahmet On Sunday, May 22, 2016 1:37 PM,

How to use a regex search within a phrase query?

2016-05-22 Thread Erez Michalak
Hey, I'm developing a search application based on SOLR 5.3.1, and would like to add to it regex search capabilities on a specific tokenized text field named 'content'. Is it possible to combine the default regex syntax within a phrase query (and moreover, within a proximity search)? If so, pleas