Re: Solr - Use Regex in the Query Phrase

2012-10-24 Thread Daisy
Ok, now I have apache-solr-4.0.0 on windows. And I am able to use the plugin ComplexPhraseQuery as mentioned above. So I can search for: For example: "art(.*?)le" or "he sa*". Thanks for all help. What if I want to search a phrase like that: "he (.*?) that" in sentences like: he said that he is a

Re: Solr - Use Regex in the Query Phrase

2012-10-23 Thread Ahmet Arslan
> For the second one I have tried what iorixxx pointed out, > but I couldnt > proceed. I am not experienced with patching, However i tried > the steps > recommended by Ahmet Arslan  here >   > . > But it didnt works for me as it is always says class

Re: Solr - Use Regex in the Query Phrase

2012-10-23 Thread Daisy
Thanks very much, I have upgraded my solr to apache-solr-4.0 and my first query works fine. For the second one I have tried what iorixxx pointed out, but I couldnt proceed. I am not experienced with patching, However i tried the steps recommended by Ahmet Arslan here

Re: Solr - Use Regex in the Query Phrase

2012-10-23 Thread Ahmet Arslan
> I think there is an alternative query parser that supports > wildcards in phrases, but the name escapes me at the > moment. Yes, https://issues.apache.org/jira/browse/SOLR-1604

Re: Solr - Use Regex in the Query Phrase

2012-10-23 Thread Jack Krupansky
In 4.0, your first query can be done with a regex query - enclose the pattern in slashes: q=/art(.*?)le/ Wildcards, fuzzy query, and regex query can only be applied to a single term, so you can't do your latter "proximity" query. The best you can do is a conjunction: q=he+sa* Although in t

RE: Solr - Use Regex in the Query Phrase

2012-10-23 Thread Markus Jelsma
Hi - Regex is not available in Solr 3.6: https://issues.apache.org/jira/browse/LUCENE-2604 -Original message- > From:Daisy > Sent: Tue 23-Oct-2012 14:13 > To: solr-user@lucene.apache.org > Subject: Solr - Use Regex in the Query Phrase > > Hi; > > I am working with apache-solr-3.6.0 o