How to use regex search?

25 views
Skip to first unread message

einstein...@gmail.com

unread,
Apr 12, 2018, 4:44:29 AM4/12/18
to Luke - Lucene Index Toolbox

I am going to test regex search with Luke. But I didn't find any way to search with regex.

I tied using the following XML query parser but it didn't work.

<BooleanQuery fieldName="text">
         <Clause occurs="should">
             <RegexQuery>^\s*[a-zA-Z]{2}(\s*\d\s*){6}[a-zA-Z]?\s*$</RegexQuery>
         </Clause>
 </BooleanQuery>

Could anyone tell me how to use regex search on Luke?

Dmitry Kan

unread,
Apr 19, 2018, 12:27:30 PM4/19/18
to luke-d...@googlegroups.com
Hi,

Could you please post your question to our github? https://github.com/DmitryKey/luke/issues
Thanks!

--
Otrzymujesz tę wiadomość, bo subskrybujesz grupę „Luke - Lucene Index Toolbox” w Grupach dyskusyjnych Google.
Aby anulować subskrypcję tej grupy i przestać otrzymywać od niej wiadomości, wyślij e-maila na luke-discuss+unsubscribe@googlegroups.com.
Więcej opcji znajdziesz na https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages