search
Requesting search results
/search/{api_key}/
Usage and SDK Samples
curl -X GET "https://searchv7.expertrec.com/v6/search/{api_key}/?q=&size=&page=&fq=&nf="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SearchApi;
import java.io.File;
import java.util.*;
public class SearchApiExample {
public static void main(String[] args) {
SearchApi apiInstance = new SearchApi();
String apiKey = apiKey_example; // String | unique search index identifier
e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4
String q = q_example; // String | Search query
String size = size_example; // String | Number of results expected in a page
String page = page_example; // String | Requested page number for results
String fq = fq_example; // String | Facet query
Restrict results to matching
```fq=:```
where both field_name and field_value are url encoded
String nf = nf_example; // String | Numeric facet query
If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
`nf=:-`
min_value and max_value are optional. e.g.,
- For price between 500 and 20000 nf=price:500-20000
- For Price less than 1000 nf=price:-1000
- For Price greater than 1000 nf=price:1000-
try {
inline_response_200_1 result = apiInstance.search(apiKey, q, size, page, fq, nf);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#search");
e.printStackTrace();
}
}
}
import io.swagger.client.api.SearchApi;
public class SearchApiExample {
public static void main(String[] args) {
SearchApi apiInstance = new SearchApi();
String apiKey = apiKey_example; // String | unique search index identifier
e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4
String q = q_example; // String | Search query
String size = size_example; // String | Number of results expected in a page
String page = page_example; // String | Requested page number for results
String fq = fq_example; // String | Facet query
Restrict results to matching
```fq=:```
where both field_name and field_value are url encoded
String nf = nf_example; // String | Numeric facet query
If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
`nf=:-`
min_value and max_value are optional. e.g.,
- For price between 500 and 20000 nf=price:500-20000
- For Price less than 1000 nf=price:-1000
- For Price greater than 1000 nf=price:1000-
try {
inline_response_200_1 result = apiInstance.search(apiKey, q, size, page, fq, nf);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#search");
e.printStackTrace();
}
}
}
String *apiKey = apiKey_example; // unique search index identifier
e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4
String *q = q_example; // Search query
String *size = size_example; // Number of results expected in a page (optional) (default to 10)
String *page = page_example; // Requested page number for results (optional) (default to 0)
String *fq = fq_example; // Facet query
Restrict results to matching
```fq=:```
where both field_name and field_value are url encoded (optional)
String *nf = nf_example; // Numeric facet query
If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
`nf=:-`
min_value and max_value are optional. e.g.,
- For price between 500 and 20000 nf=price:500-20000
- For Price less than 1000 nf=price:-1000
- For Price greater than 1000 nf=price:1000-
(optional)
SearchApi *apiInstance = [[SearchApi alloc] init];
// Requesting search results
[apiInstance searchWith:apiKey
q:q
size:size
page:page
fq:fq
nf:nf
completionHandler: ^(inline_response_200_1 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ExpertRecSuggestionsearchApi = require('expert_rec_suggestionsearch_api');
var api = new ExpertRecSuggestionsearchApi.SearchApi()
var apiKey = apiKey_example; // {String} unique search index identifier
e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4
var q = q_example; // {String} Search query
var opts = {
'size': size_example, // {String} Number of results expected in a page
'page': page_example, // {String} Requested page number for results
'fq': fq_example, // {String} Facet query
Restrict results to matching
```fq=:```
where both field_name and field_value are url encoded
'nf': nf_example // {String} Numeric facet query
If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
`nf=:-`
min_value and max_value are optional. e.g.,
- For price between 500 and 20000 nf=price:500-20000
- For Price less than 1000 nf=price:-1000
- For Price greater than 1000 nf=price:1000-
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.search(apiKey, q, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class searchExample
{
public void main()
{
var apiInstance = new SearchApi();
var apiKey = apiKey_example; // String | unique search index identifier
e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4
var q = q_example; // String | Search query
var size = size_example; // String | Number of results expected in a page (optional) (default to 10)
var page = page_example; // String | Requested page number for results (optional) (default to 0)
var fq = fq_example; // String | Facet query
Restrict results to matching
```fq=:```
where both field_name and field_value are url encoded (optional)
var nf = nf_example; // String | Numeric facet query
If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
`nf=:-`
min_value and max_value are optional. e.g.,
- For price between 500 and 20000 nf=price:500-20000
- For Price less than 1000 nf=price:-1000
- For Price greater than 1000 nf=price:1000-
(optional)
try
{
// Requesting search results
inline_response_200_1 result = apiInstance.search(apiKey, q, size, page, fq, nf);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SearchApi.search: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\SearchApi();
$apiKey = apiKey_example; // String | unique search index identifier
e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4
$q = q_example; // String | Search query
$size = size_example; // String | Number of results expected in a page
$page = page_example; // String | Requested page number for results
$fq = fq_example; // String | Facet query
Restrict results to matching
```fq=:```
where both field_name and field_value are url encoded
$nf = nf_example; // String | Numeric facet query
If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
`nf=:-`
min_value and max_value are optional. e.g.,
- For price between 500 and 20000 nf=price:500-20000
- For Price less than 1000 nf=price:-1000
- For Price greater than 1000 nf=price:1000-
try {
$result = $api_instance->search($apiKey, $q, $size, $page, $fq, $nf);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SearchApi->search: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SearchApi;
my $api_instance = WWW::SwaggerClient::SearchApi->new();
my $apiKey = apiKey_example; # String | unique search index identifier
e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4
my $q = q_example; # String | Search query
my $size = size_example; # String | Number of results expected in a page
my $page = page_example; # String | Requested page number for results
my $fq = fq_example; # String | Facet query
Restrict results to matching
```fq=:```
where both field_name and field_value are url encoded
my $nf = nf_example; # String | Numeric facet query
If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
`nf=:-`
min_value and max_value are optional. e.g.,
- For price between 500 and 20000 nf=price:500-20000
- For Price less than 1000 nf=price:-1000
- For Price greater than 1000 nf=price:1000-
eval {
my $result = $api_instance->search(apiKey => $apiKey, q => $q, size => $size, page => $page, fq => $fq, nf => $nf);
print Dumper($result);
};
if ($@) {
warn "Exception when calling SearchApi->search: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.SearchApi()
apiKey = apiKey_example # String | unique search index identifier
e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4
q = q_example # String | Search query
size = size_example # String | Number of results expected in a page (optional) (default to 10)
page = page_example # String | Requested page number for results (optional) (default to 0)
fq = fq_example # String | Facet query
Restrict results to matching
```fq=:```
where both field_name and field_value are url encoded (optional)
nf = nf_example # String | Numeric facet query
If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
`nf=:-`
min_value and max_value are optional. e.g.,
- For price between 500 and 20000 nf=price:500-20000
- For Price less than 1000 nf=price:-1000
- For Price greater than 1000 nf=price:1000-
(optional)
try:
# Requesting search results
api_response = api_instance.search(apiKey, q, size=size, page=page, fq=fq, nf=nf)
pprint(api_response)
except ApiException as e:
print("Exception when calling SearchApi->search: %s\n" % e)
Parameters
Name | Description |
---|---|
api_key* |
String
unique search index identifier
e.g., ccdb9cb6-5380-11e8-a8e3-12b6486824f4
Required
|
Name | Description |
---|---|
q* |
String
Search query
Required
|
size |
String
Number of results expected in a page
|
page |
String
Requested page number for results
|
fq |
String
Facet query
Restrict results to <field_name> matching <field_value>
```fq=<field_name>:<field_value>```
where both field_name and field_value are url encoded
|
nf |
String
Numeric facet query
If facet is of numeric type (like a slider), results will be restricted between the min and max value specified.
`nf=<field_name>:<min_value>-<max_value>`
min_value and max_value are optional. e.g.,
- For price between 500 and 20000 <code>nf=price:500-20000</code>
- For Price less than 1000 <code>nf=price:-1000</code>
- For Price greater than <code>1000 nf=price:1000-</code>
|