I want to implement Regex in fq but never implemented it before.
I have the below value in a property and the fieldtype is "lowercase": Prop=company1@city1@state1@country1@senior analytical chemist, chicago
I want to filter the results based on the regex. The regex should match the above if "company1@city1@state1@country1@"+ regex to match chicago and analytical anywhere after last @ symbol.
My requirement is to match the exact values before last @ and then use regex to match the remaining strings as I want to do free text search only on the last part. I cant split the data into multiple columns as its a multi-valued field.
I tried the below regex in the code to match the string after last @. It works fine in the code but not sure how to implement same in SOLR
/([^@]+(?=.*IL)(?=.*chicago)(?=.*analytical))/ig
Can someone please let me know how to use above regex with SOLR?