Hi - Regex is not available in Solr 3.6:
https://issues.apache.org/jira/browse/LUCENE-2604
 
-----Original message-----
> From:Daisy <omnia.za...@gmail.com>
> 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 on windows machine. I would like to be
> able to search for certain phrase which include some regex.
> 
> For example:  I want my query to be:  "art(.*?)le"
> or another example of a phrase:  "he sa*"
> 
> I dont know how to do that in the url that will be sent to solr. I would
> like to be able to do something like that:
> http://localhost:8983/solr/core0/select/?q="ar(.*?)cle"&version=2.2&start=0&rows=2&debugQuery=on&hl=true&hl.fl=*
> 
> or
> 
> http://localhost:8983/solr/core0/select/?q="he
> sa*"&version=2.2&start=0&rows=2&debugQuery=on&hl=true&hl.fl=*
> 
> 
> Here is the part of my schema that I am using 
> 
> 
>     
>     <fieldType name="text_ar" class="solr.TextField"
> positionIncrementGap="100">
>       <analyzer>  
>         <tokenizer class="solr.WhitespaceTokenizerFactory"/>        
>        </analyzer>
>     </fieldType>
> 
>  
>    <field name="text" type="text_ar" indexed="true" stored="true"
> termVectors="true" multiValued="true"/>
> 
> Any Ideas, please?
> 
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-Use-Regex-in-the-Query-Phrase-tp4015335.html
> Sent from the Solr - User mailing list archive at Nabble.com.
> 

Reply via email to