Actuall I am able to hit the local solr via postman , but unable to do same with Solr J Client for the below query . Can some help Howshould I create this query:
{
"query": {
"bool": {
"should": [
{
"edismax": {
"query": "\"market value\"",
"qf": "title^10",
"tie": "0.1",
"mm": "100%"
}
},
{
"edismax": {
"query": "market+value",
"qf": "title^2",
"tie": "0.1",
"mm": "100%"
}
},
{
"edismax": {
"query": "(market* AND value*)",
"qf": "title^5",
"tie": "0.1",
"mm": "100%"
}
},
{
"edismax": {
"query": "(market~ AND value~)",
"qf": "title^1",
"tie": "0.1",
"mm": "100%"
}
},
{
"edismax": {
"query": "{!knn f=title_vector topK=100}[-0.019111417, -0.025036218, 0.0041847187, -0.013134183]}]}
I have tried below way :
query {!bool should=$ref1 should=$ref2 should=$ref3}&ref1=title:"Market Value"&ref2=title:Market+Value&ref3=(title:Market* AND title:Value*)
Solr does provide option doing query in json format and also there solrJ query construction samples.
Click here for solr official doc page.
For eg:
Curl Json query:
SolrJ