JSFiddle - React, Tailwind, and code Playground

by andypotanin

HTML

<script src="http://libs.cncdn.cn/elasticsearch/9.0.0/elasticsearch.min.js"></script>

JavaScript

console.clear();

var client = new elasticsearch.Client({
  host: 'mpo.fiddle.jshell.net:9200',
  log: 'trace'
});

  searchParams = {
    q:'primary.mpoStatus:active AND primary.mpoPropType:singleFamily',
    from: 0,
    size: 100
  };

    client.search(searchParams).then(function (response) {
    
    console.log( response );
    
    })

       
//console.log( client );