java - How do you specify a filter query with Solrj with embedded whitespace? -


i using solrj search solr.

my application works fine until receive filter query embedded whitespace

i have tried following formats

string filterquery_1 = "\"xxx xxx xxx\"*"; string filterquery_2 = "xxx\\ xxx\\ xxx*"; string filterquery_3 = "(xxx xxx xxx)*"; 

none give satisfactory results

they either result in no filtering being applied @ or rows not appear have relationship have filtered on

how search solr solrj filter strings have embedded whitespace?

****** update 0001 ******

all text fields attempting search embedded blanks defined follows:-

<field name="text_field_00001" type="text_general" indexed="true" stored="true" /> 

these fields contain postal address details.

e.g.

     123 road      town      county      country      aa1  1aa 

i guess trying - solr exact search blank character , wildcard

this works, depends of configuration schema(field definition) can broken.

can try check querying solr manually(from admin panel or using rest api)? avoid possibility of incorect escaping can solrj can do. if filter query works correctly can try investigate issue solrj. otherwise - should review schema.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -