cancel
Showing results for 
Search instead for 
Did you mean: 

Regular Expression in QueryField - Solr

nasesantosh
Explorer
0 Kudos
310

Hello All,

I'm trying to build a filter query which has a wild card, but unable to generate in java. Ex: fq=common_plants_string_mv:000040371-250-0000*5500

How can I add a "*" in the text of the filter query. Below is something which I tried but didn't work.

final QueryField vsCommonPlantsQuery = new QueryField("common_plants", Operator.OR, QueryOperator.CONTAINS, (text + "*" + salesOrg));

Any suggestion will be helpful. Thanks!

Accepted Solutions (0)

Answers (0)