luceneserver icon indicating copy to clipboard operation
luceneserver copied to clipboard

need search example in using rest api in postman

Open bommina opened this issue 6 years ago • 2 comments

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.

bommina avatar Oct 03 '19 12:10 bommina

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.

mikemccand avatar Oct 03 '19 16:10 mikemccand

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.

bommina avatar Oct 03 '19 18:10 bommina