Adds this file to this index ONLY if mimetypes match.
Adds this file to this index ONLY if mimetypes match. Calls Versus REST endpoint. url - url where the file can be found and downloaded from
Sends a request Versus to create an index.
Sends a request Versus to create an index. Returns id of the created index.
Sends a request to delete all indexes in Versus
Sends a request to Versus to delete an index based on its id If sectionIndex - delete entry from sectionIndexInfo db collection
Helper method to get id of file/preview as returned in search results from versus.
Helper method to get id of file/preview as returned in search results from versus. url - docID of the result, could be file or preview id - id of the file or preview, a substring of the url (docID)
From all existing Versus indexes, select a subset based on typeToSearch and (optionally) sectionsSelected.
From all existing Versus indexes, select a subset based on typeToSearch and (optionally) sectionsSelected.
If typeToSearch is... both - return all the indexes sectionsSome - return selected sections sectionsAll - return all sections images - return indexes of whole images
Goes through all exisitng indexes, only adds file to indexes of matching mime type.
Goes through all exisitng indexes, only adds file to indexes of matching mime type. url - the url of the file/section/preview being indexed, where it can be downloaded from.
Sends a request to Versus REST endpoint to index a file Sends request to indexes that (1)contain whole files (as opposed to sections) and (2)of matching fileType
Sends a request to Versus REST endpoint to index a preview
Sends a request to Versus REST endpoint to index a preview
Sends a search query to an index in Versus input: inputFileURL - URL string of the file to query against an index indexId - id of the index to search within
Sends a search query to an index in Versus input: inputFileURL - URL string of the file to query against an index indexId - id of the index to search within
returns: list of previews and files search results: search results will be sorted by proximity to the given image.
Note the the image index might contain both "previews", i.e. video file previews(images extracted from a video file) and "files", i.e. in case of image searching - files that were "born as still images"
The list of results will contain both "previews" and "files" sorted by their proximity to the given image.
In case of non-image file types (e.g. pdf), only list of files will be returned.
Used to display resutls with weighted combined indexes.
Used to display resutls with weighted combined indexes. For a given index and file, will query index and return results the results are reorganized as a hash map of (file url, proximity) touples. Note: might be reorganized in the future to use queryIndex method
Versus Plugin