luceneserver
luceneserver copied to clipboard
need search example in using rest api in postman
Hi, i tried to understand how to perform search from jiraexample, but i couldn't understand that python code. Because call goes here handleOnePage(environ, startResponse, handler):. I can't see any json request in this.
I would like to know simple query how to send json query from postman. may be if you have some docs how query with facets please share.
Thank you.
Hi, sorry there are really no docs here, and I'm not actively developing this -- I'm impressed you got so far as to run jirasearch! It is running at http://jirasearch.mikemccandless.com, so somewhere in handleOnePage it is sending a REST request and parsing the returned JSON.
Thank you for your reply. I found some sample JSON query’s in Test cases. These test case examples are really helpful. But I would like to to know how to write this JSON search query? For example class:pharsequery, RegexpQuery, TermRangeQuery .
send("search", "{query: {class: PhraseQuery, field: body, terms: [wizard, oz]}, searcher: {indexGen: " + gen + "}}");
send("search", "{query: {class: RegexpQuery, field: body, regexp: '.zest.'}, searcher: {indexGen: " + gen + "}}");
send("search", "{query: {class: TermRangeQuery, field: body, lowerTerm: terma, upperTerm: termc, includeLower: true, includeUpper: true}, searcher: {indexGen: " + gen + "}}");
Is this is something like I create standard Lucene query and then converting to JSON. Or something I should know how to write JSON search query? Thanks in advance.