Search keyword not working properly
- wpsolrKeymaster2 years, 4 months ago #29634
You create your Solr index from the WPSOLR admin as usual, reindex your data, and select it for search on screen 2.2.
hsurekarParticipant2 years, 4 months ago #29636Ok Got it. Thanks for this.
But i am still facing issue like blow.
I started indexing A total of 17388 documents are currently in your index “rochprod” and then i am getting below error which doing indexing.An error occured:
Solr HTTP error: Bad Request (400) { “responseHeader”:{ “status”:400, “QTime”:176}, “error”:{ “metadata”:[ “error-class”,”org.apache.solr.common.SolrException”, “root-error-class”,”java.io.CharConversionException”], “msg”:”Invalid UTF-8 middle byte 0x3c (at char #583419, byte #585060)”, “code”:400}}
hsurekarParticipant2 years, 4 months ago #29639I followed above link but still i am getting same error
An error occured:
Solr HTTP error: Bad Request (400) { “responseHeader”:{ “status”:400, “QTime”:0}, “error”:{ “metadata”:[ “error-class”,”org.apache.solr.common.SolrException”, “root-error-class”,”java.io.CharConversionException”], “msg”:”Invalid UTF-8 middle byte 0x3c (at char #3523, byte #127)”, “code”:400}}
hsurekarParticipant2 years, 4 months ago #29660An error occured:
Solr HTTP error: Bad Request (400) { “responseHeader”:{ “status”:400, “QTime”:0}, “error”:{ “metadata”:[ “error-class”,”org.apache.solr.common.SolrException”, “root-error-class”,”java.io.CharConversionException”], “msg”:”Invalid UTF-8 middle byte 0x3c (at char #3358, byte #127)”, “code”:400}}
wpsolrKeymaster2 years, 4 months ago #29662https://bytetool.web.app/en/ascii/code/0x3c/
This character is the hexadecimal code for “<". Did you import your data from XML? Do you index PDF files (or other media files)?- This reply was modified 2 years, 4 months ago by wpsolr.
hsurekarParticipant2 years, 4 months ago #29664Hi Team,
I have checked for PDF files and we are not indexing PDF files. I have also updated XML schema which mentioned here https://www.wpsolr.com/forums/topic/exact-matches-vs-any-word-matches/page/2/ but still i am getting below errorAn error occured:
Solr HTTP error: Bad Request (400) { “responseHeader”:{ “status”:400, “QTime”:0}, “error”:{ “metadata”:[ “error-class”,”org.apache.solr.common.SolrException”, “root-error-class”,”java.io.CharConversionException”], “msg”:”Invalid UTF-8 middle byte 0x3c (at char #3358, byte #127)”, “code”:400}}
It was working fine before version upgrade but after version upgrade i am getting this error.
Could you please help me out in this issue.Thanks
wpsolrKeymaster2 years, 4 months ago #29665This is a Solr error, due to an “invalid” character somewhere in the data.
You can deactivate indexed fields (custom fields and taxonomies) one by one in screen 2.2, reindex, and check for the error to disappear. This should indicate which field contains the character.hsurekarParticipant2 years, 4 months ago #29699I have created new index and start indexing but after 24452 indexed i am getting below error.
An error occured:Solr HTTP error: Bad Request (400) { “responseHeader”:{ “status”:400, “QTime”:85}, “error”:{ “metadata”:[ “error-class”,”org.apache.solr.common.SolrException”, “root-error-class”,”java.io.CharConversionException”], “msg”:”Invalid UTF-8 middle byte 0x3c (at char #313056, byte #314725)”, “code”:400}}
You must be logged in to reply to this topic.