dbathily / gisgraphy

Automatically exported from code.google.com/p/gisgraphy
0 stars 0 forks source link

fulltext search service throw exception if it ends with lucene keywords e.g,. 'OR' and 'AND' #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to 'http://services.gisgraphy.com/ajaxfulltextsearch.html'
2. Use 'Portland, OR' as an example

Please provide any additional information below.

Throw out exception as:

Error : org.apache.solr.common.SolrException: 
orgapachelucenequeryParserParseException_Cannot_parse__query_dismax_qfname11_zip
code12_all_adm1_name05_all_adm2_name05__mm11_21_31_pfall_adm1_name_all_adm2_name
_ps6_bq_val_powpopulation03_Portland_OR_Cannot_parse_Portland_OR_Encountered_EOF
_at_line_1_column_12_Was_expecting_one_of_____NOT______________________________Q
UOTED______TERM______PREFIXTERM______WILDTERM__________________NUMBER______TERM_
___________ 
orgapachelucenequeryParserParseException_Cannot_parse__query_dismax_qfname11_zip
code12_all_adm1_name05_all_adm2_name05__mm11_21_31_pfall_adm1_name_all_adm2_name
_ps6_bq_val_powpopulation03_Portland_OR_Cannot_parse_Portland_OR_Encountered_EOF
_at_line_1_column_12_Was_expecting_one_of_____NOT______________________________Q
UOTED______TERM______PREFIXTERM______WILDTERM__________________NUMBER______TERM_
___________ request: 
http://127.0.0.1:8983/solr/select?indent=off&echoParams=none&start=0&rows=10&wt=
javabin&fl=score,feature_id,name,fully_qualified_name,zipcode,placetype,country_
code,country_name,one_way,length,street_type,openstreetmap_id,lat,lng,feature_cl
ass,feature_code,population,name_ascii,timezone,elevation,continent,currency_cod
e,currency_name,fips_code,isoalpha2_country_code,isoalpha3_country_code,postal_c
ode_mask,postal_code_regex,phone_prefix,spoken_languages,tld,capital_name,area,i
s_in,level,gtopo30,country_flag_url,google_map_url,yahoo_map_url&qt=advanced&q=_
query_:"{!dismax qf='name^1.1 zipcode^1.2 all_adm1_name^0.5 all_adm2_name^0.5 ' 
mm='1<1 2<1 3<1' pf='all_adm1_name all_adm2_name' ps=6 
bq='_val_:\"pow(population,0.3)\"' }Portland, 
OR"&spellcheck=true&spellcheck.q=Portland, 
OR&spellcheck.collate=true&spellcheck.count=2&spellcheck.dictionary=jarowinkler&
wt=javabin&version=2

'Portland, OR, US' works as expected.

Thanks,

Original issue reported on code.google.com by ji0ng.b...@gmail.com on 26 Dec 2014 at 1:26

GoogleCodeExporter commented 9 years ago
already fiwed in v 4.0

Original comment by davidmasclet@gmail.com on 29 Dec 2014 at 7:16