/select
endpoint
The /select
endpoint is a generic request handler that can accept any parameter.
It is not preconfigured with specific defaults like the other visual search endpoints.
The examples below require the example dataset.
Find images with background
Finding isolated content can be used to identify images with a uniform background that can be easily use in graphic design. This can be useful for creating marketing materials such as banner ads, social media graphics, or print materials.
For example find images that are labeled with fish
and contain a detected background.
http://localhost:8983/api/cores/my-collection/select?
fq=color_isolated:true
&fq=labels:fish
You can easily combine this query with any other filter or visual search parameter.
Find images suitable for adding text
Find images of a bridge suitable for adding text in the center of the image.
http://localhost:8983/api/cores/my-collection/select?
fq=*bridge*
&fq=copyspace:4
Search by color with faceted results
Search for images with green color and retrieve how many matching documents were found for each term of the field labels
.
These terms are query-dependent categories and called facets.
http://localhost:8983/api/cores/my-collection/select?
&rank.mode=color
&rank.by.hex=0x00ff00
&facet=true
&facet.field=labels