lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dinusha Dilrukshi <>
Subject Regex to match one of two words
Date Tue, 08 Oct 2013 07:32:32 GMT
I have an input that can have only 2 values Published or Deprecated. What
regular expression can I use to ensure that either of the two words was

I tried with different regular expressions (as in the [1], [2]) that
contains most generic syntax.. But Solar throws parser exception when
validating these expressions.. Could someone help me on writing this
regular expression that will evaluate by the Solar parser.


SolrCore org.apache.solr.common.SolrException:
org.apache.lucene.queryParser.ParseException: Cannot parse
'overview_status_s:/(PUBLISHED)?(DEPRECATED)?/': '*' or '?' not allowed as
first character in WildcardQuery


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message