Schema for Rest API for v1.5.3 on GitHub ?

Help
2014-05-29
2014-05-30
  • Dave Walton

    Dave Walton - 2014-05-29

    Hi

    I am reading the api on https://github.com/jaeksoft/opensearchserver/wiki to start testing this api (new user). Does this site have the full schema so that I can see what it supports for fields. The help pages on the right for specific things (e.g. search) are great ...., however if I want to see how to do specific things it is time-consuming to try find an example. I have resorted to running queries and seeing the errors:-(.

    Specifically, I am trying to test filters added to a JSON POST data. Is this right , as it passed OK but returns no data when it expected it to.

    "filters": [
      {
        "type": "TermFilter",
        "field": "BookReference",
        "term": "search data",
        "negative": false
       }
    ],
    

    Is there a button on the main console that can pop up the JSON POST data for whatever query I am testing manually, that would help me analyse the specific calls I need to make in my JSON

    cheers
    Dave.

    ps. I saw 1 filter example but not exactly what i wanted so i guessed.

     
  • Dave Walton

    Dave Walton - 2014-05-30

    Thanks, great, exactly what I was looking for. although the link is bad,:-), but https://github.com/jaeksoft/opensearchserver/wiki/Search-template-get has relevant details.

    By the way, in regards to terminology, template basically means a query template including entire definition of the query, right ? There are no other sorts of templates, right?
    In ESP/MS search it only referred to the "returnedFields" bit of the query with other fields applied on the fly.

    cheers
    dave.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks