Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8273511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:30:36+00:00 2026-06-08T07:30:36+00:00

There is a ‘#’ char exists in my query key like below: 17\#30\#36\#94\#35 So

  • 0

There is a ‘#’ char exists in my query key like below:

17\#30\#36\#94\#35

So a query url will be generated as:http://10.251.25.12:8080/commentindex/comment/select?q=17\#30\#36\#94\#35&rows=200&wt=json. You can see, the url will be truncated before sending to server because of ‘#’ existing, and I will get error result, error rows count, error doc type(not json I set).

For the above instance, I encoded the url as http://10.251.25.12:8080/commentindex/comment/select?q=17%5c%2330%5c%2336%5c%2394%5c%2335&rows=200&wt=json. Everything goes as my expect. However, I encounter another error if query key looked like:

←\~\\(≧▽≦\)\/\~!!|

Url will be generated as:

http://10.251.25.12:8080/commentindex/comment/select?q=%e2%86%90%5c%7e%5c%5c(%e2%89%a7%e2%96%bd%e2%89%a6%5c)%5c%2f%5c%7e%ef%bc%81%ef%bc%81%7c&rows=200&wt=json

Do you find the parentheses? It’s special char in solr query! 400 bad request I will get from the url.

I noticed that all of query key has been escaped with ‘\’, so if I should not encode whole url and only encode ‘#’ char? Is there any other special char I should note?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:30:37+00:00Added an answer on June 8, 2026 at 7:30 am

    These are the special characters in Lucene/Solr:

    + - && || ! ( ) { } [ ] ^ " ~ * ? : \
    

    and of course characters like # that have a special meaning in URLs. If you want to search for any literal character among the above you must escape it. This list is from http://lucene.apache.org/core/3_6_0/queryparsersyntax.html#Escaping%20Special%20Characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a column that exists in 2 tables. In table 1, this column
There are several shading languages available today like GLSL, HLSL, CG, which one to
There will be 500+ threads concurrently uploading an unique object to a bucket all
There are two major fix engines: opensource QuickFix http://www.quickfixengine.org/ commercial Fix Antenna http://www.b2bits.com/trading_solutions/fix_engines/fix_engine_cpp.html What
There are many tutorials that talk about deleting index.php from the url. But I
There are many methods to override, like initWithNibname: , awakeFromNib , loadView , viewDidLoad
There are things like f.call(...) f.apply(...) But then there's this (1, alert)('Zomg what is
There are a few ways to get class-like behavior in javascript, the most common
there's a php scripts which create multiple <p>text</p> elements due to user's query. I'd
There's a Rails forum gem I like called Forem https://github.com/radar/forem However, the gem author

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.