Commit 89d36703 authored by tavit ohanian's avatar tavit ohanian

more .gitignore cleanup

parent 2137d611
......@@ -10,6 +10,9 @@
app/obj/
doc/html/*.css
doc/html/*.js
site-search/build.param
site-search/crawl-index
site-search/excluded_hosts
......@@ -35,8 +38,14 @@ rmodel/rmodel
runquery/VankRunQuery
swig/obj/
swig/src/go/vank_go.go
swig/src/go/vank_gowrap.cpp
swig/src/java/vank_jni.cpp
swig/src/java/vank_jni.h
swig/src/java/is/vank/
swig/src/php/libvank_php.php
swig/src/php/php_libvank_php.h
swig/src/php/vank_phpwrap.cpp
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class IndexDocumentMetaCallback {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected IndexDocumentMetaCallback(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(IndexDocumentMetaCallback obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_IndexDocumentMetaCallback(swigCPtr);
}
swigCPtr = 0;
}
}
public void docMetaCallback(int docType, String docClass, SWIGTYPE_p_vank__utility__greedy_vectorT_vank__parse__MetadataPair_t metadata) {
vank_goJNI.IndexDocumentMetaCallback_docMetaCallback(swigCPtr, this, docType, docClass, SWIGTYPE_p_vank__utility__greedy_vectorT_vank__parse__MetadataPair_t.getCPtr(metadata));
}
public IndexDocumentMetaCallback() {
this(vank_goJNI.new_IndexDocumentMetaCallback(), true);
}
public final static class source_type {
public final static IndexDocumentMetaCallback.source_type FileSource = new IndexDocumentMetaCallback.source_type("FileSource");
public final static IndexDocumentMetaCallback.source_type StringSource = new IndexDocumentMetaCallback.source_type("StringSource");
public final int swigValue() {
return swigValue;
}
public String toString() {
return swigName;
}
public static source_type swigToEnum(int swigValue) {
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (int i = 0; i < swigValues.length; i++)
if (swigValues[i].swigValue == swigValue)
return swigValues[i];
throw new IllegalArgumentException("No enum " + source_type.class + " with value " + swigValue);
}
private source_type(String swigName) {
this.swigName = swigName;
this.swigValue = swigNext++;
}
private source_type(String swigName, int swigValue) {
this.swigName = swigName;
this.swigValue = swigValue;
swigNext = swigValue+1;
}
private source_type(String swigName, source_type swigEnum) {
this.swigName = swigName;
this.swigValue = swigEnum.swigValue;
swigNext = this.swigValue+1;
}
private static source_type[] swigValues = { FileSource, StringSource };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class IndexEnvironment {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected IndexEnvironment(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(IndexEnvironment obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_IndexEnvironment(swigCPtr);
}
swigCPtr = 0;
}
}
public IndexEnvironment() {
this(vank_goJNI.new_IndexEnvironment(), true);
}
/**
Set the document root path
@param documentRoot path to document root.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setDocumentRoot(String documentRoot) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setDocumentRoot(swigCPtr, this, documentRoot);
}
/**
Set anchor text root path.
@param anchorTextRoot path to anchor text root.
@throws Exception if
*/
public void setAnchorTextPath(String anchorTextRoot) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setAnchorTextPath(swigCPtr, this, anchorTextRoot);
}
/**
Set offset metadata root path.
@param offsetMetadataRoot path to offset metadata root.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setOffsetMetadataPath(String offsetMetadataRoot) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setOffsetMetadataPath(swigCPtr, this, offsetMetadataRoot);
}
/**
Set offset annotations root path.
@param offsetAnnotationsRoot path to offset annotations root.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setOffsetAnnotationsPath(String offsetAnnotationsRoot) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setOffsetAnnotationsPath(swigCPtr, this, offsetAnnotationsRoot);
}
/**
Add parsing information for a file class. Data for these parameters
is passed into the FileClassEnvironmentFactory
@param name name of this file class, eg trecweb
@param iterator document iterator for this file class
@param parser document parser for this file class
@param tokenizer document tokenizer for this file class
@param startDocTag tag indicating start of a document
@param endDocTag tag indicating the end of a document
@param endMetadataTag tag indicating the end of the metadata fields
@param include default tags whose contents should be included in the index
@param exclude tags whose contents should be excluded from the index
@param index tags that should be forwarded to the index for tag extents
@param metadata tags whose contents should be indexed as metadata
@param conflations tags that should be conflated
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addFileClass(String name, String iterator, String parser, String tokenizer, String startDocTag, String endDocTag, String endMetadataTag, String[] include, String[] exclude, String[] index, String[] metadata, Map conflations) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_addFileClass__SWIG_0(swigCPtr, this, name, iterator, parser, tokenizer, startDocTag, endDocTag, endMetadataTag, include, exclude, index, metadata, conflations);
}
/**
Get a named file class.
@param name The name of the file class to retrieve.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification getFileClassSpec(String name) throws java.lang.Exception {
long cPtr = vank_goJNI.IndexEnvironment_getFileClassSpec(swigCPtr, this, name);
return (cPtr == 0) ? null : new SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification(cPtr, false);
}
/**
Add a file class.
@param spec The file class to add.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addFileClass(SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification spec) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_addFileClass__SWIG_1(swigCPtr, this, SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification.getCPtr(spec));
}
/**
Delete an existing document.
@param documentID The document to delete.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void deleteDocument(int documentID) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_deleteDocument(swigCPtr, this, documentID);
}
/**
Set names of fields to be indexed. This call indicates to the index that information about
these fields should be stored in the index so they can be used in queries. This does not
affect whether or not the text in a particular field is stored in an index.
@param fieldNames the list of fields.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setIndexedFields(String[] fieldNames) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setIndexedFields(swigCPtr, this, fieldNames);
}
/**
Set the numeric property of a field.
@param fieldName the field.
@param isNumeric true if the field is a numeric field, false if not.
@param parserName The name of the Transformation to use to compute the numeric value of the field. Repository currently recognizes the name NumericFieldAnnotator.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setNumericField(String fieldName, boolean isNumeric, String parserName) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setNumericField__SWIG_0(swigCPtr, this, fieldName, isNumeric, parserName);
}
/**
Set the numeric property of a field.
@param fieldName the field.
@param isNumeric true if the field is a numeric field, false if not.
@param parserName The name of the Transformation to use to compute the numeric value of the field. Repository currently recognizes the name NumericFieldAnnotator.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setNumericField(String fieldName, boolean isNumeric) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setNumericField__SWIG_1(swigCPtr, this, fieldName, isNumeric);
}
/**
Set the ordinal property of a field. If child, parent, or
ancestor field queries are slow, you may want to be certain to index
the specified fields explicitly as an ordinal. This speeds
things up at the cost of a minimal amount of disk space.
@param fieldName the field.
@param isOrdinal true if the field is an ordinal field, false if not.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setOrdinalField(String fieldName, boolean isOrdinal) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setOrdinalField(swigCPtr, this, fieldName, isOrdinal);
}
/**
Set the parental property of a field. If child, parent, or
ancestor field queries are slow, you may want to be certain to index
the specified fields explicitly as an ordinal. This speeds
things up at the cost of a minimal amount of disk space.
@param fieldName the field.
@param isParental true if the field is a parental field, false if not.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setParentalField(String fieldName, boolean isParental) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setParentalField(swigCPtr, this, fieldName, isParental);
}
/**
Set names of metadata fields to be indexed for fast retrieval.
The forward fields are indexed in a B-Tree mapping (documentID, metadataValue).
If a field is not forward indexed, the documentMetadata calls will still work, but they
will be slower (the document has to be retrieved, decompressed and parsed to get the metadata back,
instead of just a B-Tree lookup). The backward indexed fields store a mapping of (metadataValue, documentID).
If a field is not backward indexed, the documentIDsFromMetadata and documentFromMetadata calls will not work.
@param forward the list of fields to forward index.
@param backward the list of fields to backward index.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setMetadataIndexedFields(String[] forward, String[] backward) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setMetadataIndexedFields(swigCPtr, this, forward, backward);
}
/**
set the list of stopwords
@param stopwords the list of stopwords
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setStopwords(String[] stopwords) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setStopwords(swigCPtr, this, stopwords);
}
/**
set the stemmer to use
@param stemmer the stemmer to use. One of krovetz, porter
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setStemmer(String stemmer) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setStemmer(swigCPtr, this, stemmer);
}
/**
set the amount of memory to use for internal structures
@param memory the number of bytes to use.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setMemory(long memory) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setMemory(swigCPtr, this, memory);
}
/**
set the amount of memory to use for internal structures
@param memory the number of bytes to use.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setMaxDocs(long maxdocs) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setMaxDocs(swigCPtr, this, maxdocs);
}
/**
set normalization of case and some punctuation; default is true (normalize during indexing and at query time)
@param normalize True, if text should be normalized, false otherwise.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setNormalization(boolean normalize) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setNormalization(swigCPtr, this, normalize);
}
/**
set the storeDocs flag
@param flag, false to not store documents in the compressed
collection, true to do so (default)
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setStoreDocs(boolean flag) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_setStoreDocs(swigCPtr, this, flag);
}
/**
create a new index and repository
@param repositoryPath the path to the repository
@param callback IndexStatus object to be notified of indexing progress.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void create(String repositoryPath, IndexStatus callback) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_create__SWIG_0(swigCPtr, this, repositoryPath, IndexStatus.getCPtr(callback), callback);
}
/**
create a new index and repository
@param repositoryPath the path to the repository
@param callback IndexStatus object to be notified of indexing progress.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void create(String repositoryPath) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_create__SWIG_1(swigCPtr, this, repositoryPath);
}
/**
open an existing index and repository
@param repositoryPath the path to the repository
@param callback IndexStatus object to be notified of indexing progress.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void open(String repositoryPath, IndexStatus callback) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_open__SWIG_0(swigCPtr, this, repositoryPath, IndexStatus.getCPtr(callback), callback);
}
/**
open an existing index and repository
@param repositoryPath the path to the repository
@param callback IndexStatus object to be notified of indexing progress.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void open(String repositoryPath) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_open__SWIG_1(swigCPtr, this, repositoryPath);
}
/**
close the index and repository
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void close() throws java.lang.Exception {
vank_goJNI.IndexEnvironment_close(swigCPtr, this);
}
/**
Add the text in a file to the index and repository. The fileClass of this file
will be chosen based on the file extension. If the file has no extension, it will
be skipped. Information about indexing progress will be passed to the callback.
@param fileName the file to add
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addFile(String fileName, IndexDocumentMetaCallback metaCB) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_addFile__SWIG_0(swigCPtr, this, fileName, IndexDocumentMetaCallback.getCPtr(metaCB), metaCB);
}
/**
add a file of the specified file class to the index and repository
@param fileName the file to add
@param fileClass the file class to add (eg trecweb).
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addFile(String fileName, String fileClass, IndexDocumentMetaCallback metaCB) throws java.lang.Exception {
vank_goJNI.IndexEnvironment_addFile__SWIG_1(swigCPtr, this, fileName, fileClass, IndexDocumentMetaCallback.getCPtr(metaCB), metaCB);
}
/**
Adds a string to the index and repository. The documentString is assumed to contain the kind of
text that would be found in a file of type fileClass.
@param fileName the document to add
@param fileClass the file class to add (eg trecweb).
@param metadata the metadata pairs associated with the string.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int addString(String fileName, String fileClass, SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t metadata) throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_addString__SWIG_0(swigCPtr, this, fileName, fileClass, SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t.getCPtr(metadata));
}
/**
Adds a string to the index and repository. The documentString is assumed to contain the kind of
text that would be found in a file of type fileClass.
@param documentString the document string to add.
@param fileClass the file class, signaling which parser to use while processing the document string.
@param metadata a map of metadata String name to String value.
@param tags offset annotations to be indexed as field data. The
begin and end values of each TagExtent specify <b>byte</b> (not
character or token) offsets within the document string. These
byte offsets are converted to token offsets after document
string parsing.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int addString(String documentString, String fileClass, SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t metadata, TagExtent[] tags) throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_addString__SWIG_1(swigCPtr, this, documentString, fileClass, SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t.getCPtr(metadata), tags);
}
/**
add an already parsed document to the index and repository
@param document the document to add
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int addParsedDocument(SWIGTYPE_p_vank__api__ParsedDocument document) throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_addParsedDocument(swigCPtr, this, SWIGTYPE_p_vank__api__ParsedDocument.getCPtr(document));
}
/**
Returns the number of documents indexed so far in this session.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int documentsIndexed() throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_documentsIndexed(swigCPtr, this);
}
/**
Returns the number of documents considered for indexing,
which is the sum of the documents indexed and the documents
skipped.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int documentsSeen() throws java.lang.Exception {
return vank_goJNI.IndexEnvironment_documentsSeen(swigCPtr, this);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class IndexStatus {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected IndexStatus(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(IndexStatus obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_IndexStatus(swigCPtr);
}
swigCPtr = 0;
}
}
public void status(int code, String documentPath, String error, int documentsIndexed, int documentsSeen) {
vank_goJNI.IndexStatus_status(swigCPtr, this, code, documentPath, error, documentsIndexed, documentsSeen);
}
public final static class action_code {
public final static IndexStatus.action_code FileOpen = new IndexStatus.action_code("FileOpen");
public final static IndexStatus.action_code FileSkip = new IndexStatus.action_code("FileSkip");
public final static IndexStatus.action_code FileError = new IndexStatus.action_code("FileError");
public final static IndexStatus.action_code FileClose = new IndexStatus.action_code("FileClose");
public final static IndexStatus.action_code DocumentCount = new IndexStatus.action_code("DocumentCount");
public final int swigValue() {
return swigValue;
}
public String toString() {
return swigName;
}
public static action_code swigToEnum(int swigValue) {
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (int i = 0; i < swigValues.length; i++)
if (swigValues[i].swigValue == swigValue)
return swigValues[i];
throw new IllegalArgumentException("No enum " + action_code.class + " with value " + swigValue);
}
private action_code(String swigName) {
this.swigName = swigName;
this.swigValue = swigNext++;
}
private action_code(String swigName, int swigValue) {
this.swigName = swigName;
this.swigValue = swigValue;
swigNext = swigValue+1;
}
private action_code(String swigName, action_code swigEnum) {
this.swigName = swigName;
this.swigValue = swigEnum.swigValue;
swigNext = this.swigValue+1;
}
private static action_code[] swigValues = { FileOpen, FileSkip, FileError, FileClose, DocumentCount };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class Parameters {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected Parameters(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Parameters obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_Parameters(swigCPtr);
}
swigCPtr = 0;
}
}
public Parameters() {
this(vank_goJNI.new_Parameters(), true);
}
public void set(String value) {
vank_goJNI.Parameters_set(swigCPtr, value);
}
public boolean get_bool(String name, boolean def) {
return vank_goJNI.Parameters_get_bool(swigCPtr, name, def);
}
public int get_int(String name, int def) {
return vank_goJNI.Parameters_get_int(swigCPtr, name, def);
}
public double get_double(String name, double def) {
return vank_goJNI.Parameters_get_double(swigCPtr, name, def);
}
public long get_INT64(String name, long def) {
return vank_goJNI.Parameters_get_INT64(swigCPtr, name, def);
}
public String get_string(String name, String def) {
return vank_goJNI.Parameters_get_string(swigCPtr, name, def);
}
public void remove(String path) {
vank_goJNI.Parameters_remove(swigCPtr, path);
}
public void set_bool(String name, boolean value) {
vank_goJNI.Parameters_set_bool(swigCPtr, name, value);
}
public void set_string(String name, String value) {
vank_goJNI.Parameters_set_string(swigCPtr, name, value);
}
public void set_int(String name, int value) {
vank_goJNI.Parameters_set_int(swigCPtr, name, value);
}
public void set_UINT64(String name, long value) {
vank_goJNI.Parameters_set_UINT64(swigCPtr, name, value);
}
public void set_double(String name, double value) {
vank_goJNI.Parameters_set_double(swigCPtr, name, value);
}
public void clear() {
vank_goJNI.Parameters_clear(swigCPtr);
}
public long size() {
return vank_goJNI.Parameters_size(swigCPtr);
}
public boolean exists(String name) {
return vank_goJNI.Parameters_exists(swigCPtr, name);
}
public void load(String text) {
vank_goJNI.Parameters_load(swigCPtr, text);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class ParsedDocument {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ParsedDocument(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ParsedDocument obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_ParsedDocument(swigCPtr);
}
swigCPtr = 0;
}
}
public String getContent() {
return vank_goJNI.ParsedDocument_getContent(swigCPtr);
}
public ParsedDocument() {
this(vank_goJNI.new_ParsedDocument(), true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class PonteExpander extends QueryExpander {
private transient long swigCPtr;
protected PonteExpander(long cPtr, boolean cMemoryOwn) {
super(vank_goJNI.PonteExpander_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(PonteExpander obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_PonteExpander(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public PonteExpander(QueryEnvironment env, Map param) {
this(vank_goJNI.new_PonteExpander(QueryEnvironment.getCPtr(env), env, param), true);
}
public String expand(String originalQuery, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t results) {
return vank_goJNI.PonteExpander_expand(swigCPtr, this, originalQuery, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t.getCPtr(results));
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class QueryAnnotation {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected QueryAnnotation(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(QueryAnnotation obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
/**
@return ScoredExtentResults for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_QueryAnnotation(swigCPtr);
}
swigCPtr = 0;
}
}
/**
@return QueryAnnotationNodes for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public QueryAnnotationNode getQueryTree() throws java.lang.Exception {
return vank_goJNI.QueryAnnotation_getQueryTree(swigCPtr, this);
}
/**
@return Annotations for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public java.util.Map getAnnotations() throws java.lang.Exception {
return vank_goJNI.QueryAnnotation_getAnnotations(swigCPtr, this);
}
/**
@return ScoredExtentResults for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public ScoredExtentResult[] getResults() throws java.lang.Exception {
return vank_goJNI.QueryAnnotation_getResults(swigCPtr, this);
}
/**
@return ScoredExtentResults for the query tree.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public QueryAnnotation() {
this(vank_goJNI.new_QueryAnnotation(), true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class QueryAnnotationNode {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected QueryAnnotationNode(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(QueryAnnotationNode obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_QueryAnnotationNode(swigCPtr);
}
swigCPtr = 0;
}
}
public QueryAnnotationNode() {
this(vank_goJNI.new_QueryAnnotationNode(), true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class QueryEnvironment {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected QueryEnvironment(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(QueryEnvironment obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
/**
Return all the length of a document.
@param documentID The internal document id.
@return the length of the document.
*/
public void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_QueryEnvironment(swigCPtr);
}
swigCPtr = 0;
}
}
public QueryEnvironment() {
this(vank_goJNI.new_QueryEnvironment(), true);
}
/**
Add a remote server
@param hostname the host the server is running on
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addServer(String hostname) throws java.lang.Exception {
vank_goJNI.QueryEnvironment_addServer(swigCPtr, this, hostname);
}
/**
Add a local repository
@param pathname the path to the repository.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void addIndex(String pathname) throws java.lang.Exception {
vank_goJNI.QueryEnvironment_addIndex(swigCPtr, this, pathname);
}
/**
Remove a remote server
@param hostname the host the server is running on
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void removeServer(String hostname) throws java.lang.Exception {
vank_goJNI.QueryEnvironment_removeServer(swigCPtr, this, hostname);
}
/**
Remove a local repository
@param pathname the path to the repository.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void removeIndex(String pathname) throws java.lang.Exception {
vank_goJNI.QueryEnvironment_removeIndex(swigCPtr, this, pathname);
}
/**
Close the QueryEnvironment.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void close() throws java.lang.Exception {
vank_goJNI.QueryEnvironment_close(swigCPtr, this);
}
/**
Set the amount of memory to use.
@param memory number of bytes to allocate
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setMemory(long memory) throws java.lang.Exception {
vank_goJNI.QueryEnvironment_setMemory(swigCPtr, this, memory);
}
/**
Set the scoring rules
@param rules the vector of scoring rules.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setScoringRules(String[] rules) throws java.lang.Exception {
vank_goJNI.QueryEnvironment_setScoringRules(swigCPtr, this, rules);
}
/**
Set the stopword list for query processing
@param stopwords the list of stopwords
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public void setStopwords(String[] stopwords) throws java.lang.Exception {
vank_goJNI.QueryEnvironment_setStopwords(swigCPtr, this, stopwords);
}
/**
Run an Vank query language query.
@param query the query to run
@param resultsRequested maximum number of results to return
@return the vector of ScoredExtentResults for the query
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t runQuery(String query, int resultsRequested) throws java.lang.Exception {
return new SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t(vank_goJNI.QueryEnvironment_runQuery__SWIG_0(swigCPtr, this, query, resultsRequested), true);
}
/**
Run an Vank query language query on a set of documents.
@param query the query to run
@param resultsRequested maximum number of results to return
@param documentSet the list of document ids to score.
@return the vector of ScoredExtentResults for the query
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t runQuery(String query, int[] documentSet, int resultsRequested) throws java.lang.Exception {
return new SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t(vank_goJNI.QueryEnvironment_runQuery__SWIG_1(swigCPtr, this, query, documentSet, resultsRequested), true);
}
/**
Run an Vank query request
@param request the query request to run
@return the QueryResults
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public QueryResults runQuery(QueryRequest request) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_runQuery__SWIG_2(swigCPtr, this, request);
}
/**
Run an Vank query language query.
@param query the query to run
@param resultsRequested maximum number of results to return
@return pointer to QueryAnnotations for the query
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_vank__api__QueryAnnotation runAnnotatedQuery(String query, int resultsRequested) throws java.lang.Exception {
long cPtr = vank_goJNI.QueryEnvironment_runAnnotatedQuery__SWIG_0(swigCPtr, this, query, resultsRequested);
return (cPtr == 0) ? null : new SWIGTYPE_p_vank__api__QueryAnnotation(cPtr, true);
}
/**
Run an Vank query language query on a set of documents.
@param query the query to run
@param documentSet list of document ids to score.
@param resultsRequested maximum number of results to return
@return pointer to QueryAnnotations for the query
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_vank__api__QueryAnnotation runAnnotatedQuery(String query, int[] documentSet, int resultsRequested) throws java.lang.Exception {
long cPtr = vank_goJNI.QueryEnvironment_runAnnotatedQuery__SWIG_1(swigCPtr, this, query, documentSet, resultsRequested);
return (cPtr == 0) ? null : new SWIGTYPE_p_vank__api__QueryAnnotation(cPtr, true);
}
/**
Fetch the parsed documents for a given list of ScoredExtentResults
@param documentIDs the list of ScoredExtentResults
@return the vector of ParsedDocument pointers.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t documents(int[] documentIDs) throws java.lang.Exception {
return new SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t(vank_goJNI.QueryEnvironment_documents__SWIG_0(swigCPtr, this, documentIDs), true);
}
/**
Fetch the parsed documents for a given list of ScoredExtentResults
@param results the list of ScoredExtentResults
@return the vector of ParsedDocument pointers.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t documents(SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t results) throws java.lang.Exception {
return new SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t(vank_goJNI.QueryEnvironment_documents__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t.getCPtr(results)), true);
}
/**
Fetch the named metadata attribute for a list of document ids
@param documentIDs the list of ids
@param attributeName the name of the metadata attribute
@return the vector of string values for that attribute
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public String[] documentMetadata(int[] documentIDs, String attributeName) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_documentMetadata__SWIG_0(swigCPtr, this, documentIDs, attributeName);
}
/**
Fetch the named metadata attribute for a list of ScoredExtentResults
@param documentIDs the list of ScoredExtentResults
@param attributeName the name of the metadata attribute
@return the vector of string values for that attribute
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public String[] documentMetadata(SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t documentIDs, String attributeName) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_documentMetadata__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t.getCPtr(documentIDs), attributeName);
}
/**
Return a list of document IDs where the document has a metadata key that matches attributeName, with a value matching one of the attributeValues.
@param attributeName the name of the metadata attribute (e.g. 'url' or 'docno')
@param attributeValue values that the metadata attribute should match
@return a vector of ParsedDocuments that match the given metadata criteria
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public int[] documentIDsFromMetadata(String attributeName, String[] attributeValue) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_documentIDsFromMetadata(swigCPtr, this, attributeName, attributeValue);
}
/**
Fetch all documents with a metadata key that matches attributeName, with a value matching one of the attributeValues.
@param attributeName the name of the metadata attribute (e.g. 'url' or 'docno')
@param attributeValues values that the metadata attribute should match
@return a vector of ParsedDocuments that match the given metadata criteria
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t documentsFromMetadata(String attributeName, String[] attributeValue) throws java.lang.Exception {
return new SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t(vank_goJNI.QueryEnvironment_documentsFromMetadata(swigCPtr, this, attributeName, attributeValue), true);
}
/**
Return total number of terms.
@return total number of terms in the aggregated collection
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public long termCount() throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_termCount__SWIG_0(swigCPtr, this);
}
/**
Return total number of term occurrences.
@param term the term to count
@return total frequency of this term in the aggregated collection
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public long termCount(String term) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_termCount__SWIG_1(swigCPtr, this, term);
}
/**
Return total number of term occurrences within a field.
@param term the term to count
@param field the name of the field
@return total frequency of this term within this field in the
aggregated collection
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public long termFieldCount(String term, String field) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_termFieldCount(swigCPtr, this, term, field);
}
/**
Return the list of fields.
@return vector of field names.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public String[] fieldList() throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_fieldList(swigCPtr, this);
}
/**
Return total number of documents in the collection.
@return total number of documents in the aggregated collection
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public long documentCount() throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_documentCount__SWIG_0(swigCPtr, this);
}
/**
Return total number of documents in the collection for the given term.
@param term the term to count documents for
@return total number of documents containing the term in the aggregated collection
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public long documentCount(String term) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_documentCount__SWIG_1(swigCPtr, this, term);
}
/**
Fetch a document vector for a list of documents.
@param documentIDs the vector of document ids.
@return DocumentVector pointer for the specified document.
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public DocumentVector[] documentVectors(int[] documentIDs) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_documentVectors(swigCPtr, this, documentIDs);
}
/**
Return the total number of times this expression appears in the collection.
@param expression The expression to evaluate, probably an ordered or unordered window expression
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public double expressionCount(String expression, String queryType) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_expressionCount__SWIG_0(swigCPtr, this, expression, queryType);
}
/**
Return the total number of times this expression appears in the collection.
@param expression The expression to evaluate, probably an ordered or unordered window expression
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public double expressionCount(String expression) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_expressionCount__SWIG_1(swigCPtr, this, expression);
}
/**
Return the total number of documents this expression appears in the collection.
@param expression The expression to evaluate, probably an ordered or unordered window expression
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public double documentExpressionCount(String expression, String queryType) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_documentExpressionCount__SWIG_0(swigCPtr, this, expression, queryType);
}
/**
Return the total number of documents this expression appears in the collection.
@param expression The expression to evaluate, probably an ordered or unordered window expression
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public double documentExpressionCount(String expression) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_documentExpressionCount__SWIG_1(swigCPtr, this, expression);
}
/**
Return all the occurrences of this expression in the collection.
Note that the returned vector may be quite large for large collections, and therefore
has the very real possibility of exhausting the memory of the machine. Use this method
with discretion.
@param expression The expression to evaluate, probably an ordered or unordered window expression
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t expressionList(String expression, String queryType) throws java.lang.Exception {
return new SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t(vank_goJNI.QueryEnvironment_expressionList__SWIG_0(swigCPtr, this, expression, queryType), true);
}
/**
Return all the occurrences of this expression in the collection.
Note that the returned vector may be quite large for large collections, and therefore
has the very real possibility of exhausting the memory of the machine. Use this method
with discretion.
@param expression The expression to evaluate, probably an ordered or unordered window expression
@throws Exception if a lemur::api::Exception was thrown by the JNI library.
*/
public SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t expressionList(String expression) throws java.lang.Exception {
return new SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t(vank_goJNI.QueryEnvironment_expressionList__SWIG_1(swigCPtr, this, expression), true);
}
/**
Return all the length of a document.
@param documentID The internal document id.
@return the length of the document.
*/
public int documentLength(int documentID) throws java.lang.Exception {
return vank_goJNI.QueryEnvironment_documentLength(swigCPtr, this, documentID);
}
/**
Return all the length of a document.
@param documentID The internal document id.
@return the length of the document.
*/
public void setFormulationParameters(Map p) {
vank_goJNI.QueryEnvironment_setFormulationParameters(swigCPtr, this, p);
}
/**
Return all the length of a document.
@param documentID The internal document id.
@return the length of the document.
*/
public String reformulateQuery(String query) {
return vank_goJNI.QueryEnvironment_reformulateQuery(swigCPtr, this, query);
}
/**
Return all the length of a document.
@param documentID The internal document id.
@return the length of the document.
*/
public String stemTerm(String term) {
return vank_goJNI.QueryEnvironment_stemTerm(swigCPtr, this, term);
}
/**
Return all the length of a document.
@param documentID The internal document id.
@return the length of the document.
*/
public long termCountUnique() {
return vank_goJNI.QueryEnvironment_termCountUnique(swigCPtr, this);
}
/**
Return all the length of a document.
@param documentID The internal document id.
@return the length of the document.
*/
public long stemCount(String term) {
return vank_goJNI.QueryEnvironment_stemCount(swigCPtr, this, term);
}
/**
Return all the length of a document.
@param documentID The internal document id.
@return the length of the document.
*/
public long stemFieldCount(String term, String field) {
return vank_goJNI.QueryEnvironment_stemFieldCount(swigCPtr, this, term, field);
}
/**
Return all the length of a document.
@param documentID The internal document id.
@return the length of the document.
*/
public long documentStemCount(String stem) {
return vank_goJNI.QueryEnvironment_documentStemCount(swigCPtr, this, stem);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class QueryExpander {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected QueryExpander(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(QueryExpander obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_QueryExpander(swigCPtr);
}
swigCPtr = 0;
}
}
public SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t runExpandedQuery(String originalQuery, int resultsRequested, boolean verbose) {
return new SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t(vank_goJNI.QueryExpander_runExpandedQuery__SWIG_0(swigCPtr, this, originalQuery, resultsRequested, verbose), true);
}
public SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t runExpandedQuery(String originalQuery, int resultsRequested) {
return new SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t(vank_goJNI.QueryExpander_runExpandedQuery__SWIG_1(swigCPtr, this, originalQuery, resultsRequested), true);
}
public String expand(String originalQuery, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t results) {
return vank_goJNI.QueryExpander_expand(swigCPtr, this, originalQuery, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t.getCPtr(results));
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class RMExpander extends QueryExpander {
private transient long swigCPtr;
protected RMExpander(long cPtr, boolean cMemoryOwn) {
super(vank_goJNI.RMExpander_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(RMExpander obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_RMExpander(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public RMExpander(QueryEnvironment env, Map param) {
this(vank_goJNI.new_RMExpander(QueryEnvironment.getCPtr(env), env, param), true);
}
public String expand(String originalQuery, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t results) {
return vank_goJNI.RMExpander_expand(swigCPtr, this, originalQuery, SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t.getCPtr(results));
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_std__vectorT_lemur__api__DOCID_T_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_lemur__api__DOCID_T_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_lemur__api__DOCID_T_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_lemur__api__DOCID_T_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_std__vectorT_std__string_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_std__string_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_std__string_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_std__string_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_vank__api__ParsedDocument_p_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_vank__api__ScoredExtentResult_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t {
private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_std__vectorT_vank__parse__MetadataPair_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_vank__api__ParsedDocument {
private transient long swigCPtr;
protected SWIGTYPE_p_vank__api__ParsedDocument(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_vank__api__ParsedDocument() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_vank__api__ParsedDocument obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_vank__api__QueryAnnotation {
private transient long swigCPtr;
protected SWIGTYPE_p_vank__api__QueryAnnotation(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_vank__api__QueryAnnotation() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_vank__api__QueryAnnotation obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_vank__infnet__EvaluatorNode__MResults {
private transient long swigCPtr;
protected SWIGTYPE_p_vank__infnet__EvaluatorNode__MResults(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_vank__infnet__EvaluatorNode__MResults() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_vank__infnet__EvaluatorNode__MResults obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification {
private transient long swigCPtr;
protected SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_vank__parse__FileClassEnvironmentFactory__Specification obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class SWIGTYPE_p_vank__utility__greedy_vectorT_vank__parse__MetadataPair_t {
private transient long swigCPtr;
protected SWIGTYPE_p_vank__utility__greedy_vectorT_vank__parse__MetadataPair_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_vank__utility__greedy_vectorT_vank__parse__MetadataPair_t() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_vank__utility__greedy_vectorT_vank__parse__MetadataPair_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class ScoredExtentResult {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ScoredExtentResult(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ScoredExtentResult obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_ScoredExtentResult(swigCPtr);
}
swigCPtr = 0;
}
}
public ScoredExtentResult() {
this(vank_goJNI.new_ScoredExtentResult(), true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class TermExtent {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected TermExtent(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(TermExtent obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
vank_goJNI.delete_TermExtent(swigCPtr);
}
swigCPtr = 0;
}
}
public void setBegin(int value) {
vank_goJNI.TermExtent_begin_set(swigCPtr, this, value);
}
public int getBegin() {
return vank_goJNI.TermExtent_begin_get(swigCPtr, this);
}
public void setEnd(int value) {
vank_goJNI.TermExtent_end_set(swigCPtr, this, value);
}
public int getEnd() {
return vank_goJNI.TermExtent_end_get(swigCPtr, this);
}
public TermExtent() {
this(vank_goJNI.new_TermExtent(), true);
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
public class vank_go {
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package is.vank;
import java.util.Map;
public class vank_goJNI {
static {
System.loadLibrary("vank_jni");
}
}
This diff is collapsed.
<?php
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
* ----------------------------------------------------------------------------- */
// Try to load our extension if it's not already loaded.
if (!extension_loaded('libindri_php')) {
if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {
if (!dl('php_libindri_php.dll')) return;
} else {
// PHP_SHLIB_SUFFIX gives 'dylib' on MacOS X but modules are 'so'.
if (PHP_SHLIB_SUFFIX === 'dylib') {
if (!dl('libindri_php.so')) return;
} else {
if (!dl('libindri_php.'.PHP_SHLIB_SUFFIX)) return;
}
}
}
/* PHP Proxy Classes */
class TermExtent {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'end') return TermExtent_end_set($this->_cPtr,$value);
if ($var === 'begin') return TermExtent_begin_set($this->_cPtr,$value);
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __get($var) {
if ($var === 'end') return TermExtent_end_get($this->_cPtr);
if ($var === 'begin') return TermExtent_begin_get($this->_cPtr);
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __isset($var) {
if (function_exists('TermExtent_'.$var.'_get')) return true;
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __construct($res=null) {
if (is_resource($res) && get_resource_type($res) === '_p_indri__parse__TermExtent') {
$this->_cPtr=$res;
return;
}
$this->_cPtr=new_TermExtent();
}
}
class Parameters {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __get($var) {
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __isset($var) {
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __construct($res=null) {
if (is_resource($res) && get_resource_type($res) === '_p_indri__api__Parameters') {
$this->_cPtr=$res;
return;
}
$this->_cPtr=new_Parameters();
}
function set($value) {
Parameters_set($this->_cPtr,$value);
}
function get_bool($name,$def) {
return Parameters_get_bool($this->_cPtr,$name,$def);
}
function get_int($name,$def) {
return Parameters_get_int($this->_cPtr,$name,$def);
}
function get_double($name,$def) {
return Parameters_get_double($this->_cPtr,$name,$def);
}
function get_INT64($name,$def) {
return Parameters_get_INT64($this->_cPtr,$name,$def);
}
function get_string($name,$def) {
return Parameters_get_string($this->_cPtr,$name,$def);
}
function remove($path) {
Parameters_remove($this->_cPtr,$path);
}
function set_bool($name,$value) {
Parameters_set_bool($this->_cPtr,$name,$value);
}
function set_string($name,$value) {
Parameters_set_string($this->_cPtr,$name,$value);
}
function set_int($name,$value) {
Parameters_set_int($this->_cPtr,$name,$value);
}
function set_UINT64($name,$value) {
Parameters_set_UINT64($this->_cPtr,$name,$value);
}
function set_double($name,$value) {
Parameters_set_double($this->_cPtr,$name,$value);
}
function clear() {
Parameters_clear($this->_cPtr);
}
function size() {
return Parameters_size($this->_cPtr);
}
function exists($name) {
return Parameters_exists($this->_cPtr,$name);
}
function load($text) {
Parameters_load($this->_cPtr,$text);
}
}
class ScoredExtentResult {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __get($var) {
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __isset($var) {
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __construct($res=null) {
if (is_resource($res) && get_resource_type($res) === '_p_indri__api__ScoredExtentResult') {
$this->_cPtr=$res;
return;
}
$this->_cPtr=new_ScoredExtentResult();
}
}
class ParsedDocument {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __get($var) {
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __isset($var) {
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function getContent() {
return ParsedDocument_getContent($this->_cPtr);
}
function __construct($res=null) {
if (is_resource($res) && get_resource_type($res) === '_p_indri__api__ParsedDocument') {
$this->_cPtr=$res;
return;
}
$this->_cPtr=new_ParsedDocument();
}
}
class QueryAnnotationNode {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __get($var) {
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __isset($var) {
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __construct($res=null) {
if (is_resource($res) && get_resource_type($res) === '_p_indri__api__QueryAnnotationNode') {
$this->_cPtr=$res;
return;
}
$this->_cPtr=new_QueryAnnotationNode();
}
}
class QueryAnnotation {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __get($var) {
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __isset($var) {
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __construct($h) {
$this->_cPtr=$h;
}
function getQueryTree() {
$r=QueryAnnotation_getQueryTree($this->_cPtr);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new QueryAnnotationNode($r);
}
return $r;
}
function getAnnotations() {
return QueryAnnotation_getAnnotations($this->_cPtr);
}
function getResults() {
return QueryAnnotation_getResults($this->_cPtr);
}
}
class QueryEnvironment {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __get($var) {
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __isset($var) {
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function addServer($hostname) {
QueryEnvironment_addServer($this->_cPtr,$hostname);
}
function addIndex($pathname) {
QueryEnvironment_addIndex($this->_cPtr,$pathname);
}
function close() {
QueryEnvironment_close($this->_cPtr);
}
function setMemory($memory) {
QueryEnvironment_setMemory($this->_cPtr,$memory);
}
function setScoringRules($rules) {
QueryEnvironment_setScoringRules($this->_cPtr,$rules);
}
function setStopwords($stopwords) {
QueryEnvironment_setStopwords($this->_cPtr,$stopwords);
}
function runQuery($query,$resultsRequested) {
return QueryEnvironment_runQuery($this->_cPtr,$query,$resultsRequested);
}
function runQuerydocset($query,$documentSet,$resultsRequested) {
return QueryEnvironment_runQuerydocset($this->_cPtr,$query,$documentSet,$resultsRequested);
}
function runAnnotatedQuery($query,$resultsRequested) {
$r=QueryEnvironment_runAnnotatedQuery($this->_cPtr,$query,$resultsRequested);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new QueryAnnotation($r);
}
return $r;
}
function runAnnotatedQuerydocset($query,$documentSet,$resultsRequested) {
$r=QueryEnvironment_runAnnotatedQuerydocset($this->_cPtr,$query,$documentSet,$resultsRequested);
if (is_resource($r)) {
$c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
if (class_exists($c)) return new $c($r);
return new QueryAnnotation($r);
}
return $r;
}
function documentsdocids($documentIDs) {
return QueryEnvironment_documentsdocids($this->_cPtr,$documentIDs);
}
function documents($results) {
return QueryEnvironment_documents($this->_cPtr,$results);
}
function documentMetadatadocids($documentIDs,$attributeName) {
return QueryEnvironment_documentMetadatadocids($this->_cPtr,$documentIDs,$attributeName);
}
function documentMetadata($documentIDs,$attributeName) {
return QueryEnvironment_documentMetadata($this->_cPtr,$documentIDs,$attributeName);
}
function documentIDsFromMetadata($attributeName,$attributeValue) {
return QueryEnvironment_documentIDsFromMetadata($this->_cPtr,$attributeName,$attributeValue);
}
function termCount() {
return QueryEnvironment_termCount($this->_cPtr);
}
function onetermCount($term) {
return QueryEnvironment_onetermCount($this->_cPtr,$term);
}
function stemCount($term) {
return QueryEnvironment_stemCount($this->_cPtr,$term);
}
function termFieldCount($term,$field) {
return QueryEnvironment_termFieldCount($this->_cPtr,$term,$field);
}
function stemFieldCount($term,$field) {
return QueryEnvironment_stemFieldCount($this->_cPtr,$term,$field);
}
function fieldList() {
return QueryEnvironment_fieldList($this->_cPtr);
}
function documentCount() {
return QueryEnvironment_documentCount($this->_cPtr);
}
function onedocumentCount($term) {
return QueryEnvironment_onedocumentCount($this->_cPtr,$term);
}
function expressionCount($expression,$queryType=null) {
switch (func_num_args()) {
case 1: $r=QueryEnvironment_expressionCount($this->_cPtr,$expression); break;
default: $r=QueryEnvironment_expressionCount($this->_cPtr,$expression,$queryType);
}
return $r;
}
function documentExpressionCount($expression,$queryType=null) {
switch (func_num_args()) {
case 1: $r=QueryEnvironment_documentExpressionCount($this->_cPtr,$expression); break;
default: $r=QueryEnvironment_documentExpressionCount($this->_cPtr,$expression,$queryType);
}
return $r;
}
function expressionList($expression,$queryType=null) {
switch (func_num_args()) {
case 1: $r=QueryEnvironment_expressionList($this->_cPtr,$expression); break;
default: $r=QueryEnvironment_expressionList($this->_cPtr,$expression,$queryType);
}
return $r;
}
function documentLength($documentID) {
return QueryEnvironment_documentLength($this->_cPtr,$documentID);
}
function setFormulationParameters($p) {
QueryEnvironment_setFormulationParameters($this->_cPtr,$p);
}
function reformulateQuery($query) {
return QueryEnvironment_reformulateQuery($this->_cPtr,$query);
}
function __construct($res=null) {
if (is_resource($res) && get_resource_type($res) === '_p_indri__api__QueryEnvironment') {
$this->_cPtr=$res;
return;
}
$this->_cPtr=new_QueryEnvironment();
}
}
abstract class QueryExpander {
public $_cPtr=null;
protected $_pData=array();
function __set($var,$value) {
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
$this->_pData[$var] = $value;
}
function __get($var) {
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return $this->_pData[$var];
}
function __isset($var) {
if ($var === 'thisown') return true;
return array_key_exists($var, $this->_pData);
}
function __construct($h) {
$this->_cPtr=$h;
}
function runExpandedQuery($originalQuery,$resultsRequested,$verbose=false) {
return QueryExpander_runExpandedQuery($this->_cPtr,$originalQuery,$resultsRequested,$verbose);
}
function expand($originalQuery,$results) {
return QueryExpander_expand($this->_cPtr,$originalQuery,$results);
}
}
class RMExpander extends QueryExpander {
public $_cPtr=null;
function __set($var,$value) {
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
QueryExpander::__set($var,$value);
}
function __get($var) {
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return QueryExpander::__get($var);
}
function __isset($var) {
if ($var === 'thisown') return true;
return QueryExpander::__isset($var);
}
function __construct($env,$param) {
if (is_resource($env) && get_resource_type($env) === '_p_indri__query__RMExpander') {
$this->_cPtr=$env;
return;
}
$this->_cPtr=new_RMExpander($env,$param);
}
function expand($originalQuery,$results) {
return RMExpander_expand($this->_cPtr,$originalQuery,$results);
}
}
class PonteExpander extends QueryExpander {
public $_cPtr=null;
function __set($var,$value) {
if ($var === 'thisown') return swig_libindri_php_alter_newobject($this->_cPtr,$value);
QueryExpander::__set($var,$value);
}
function __get($var) {
if ($var === 'thisown') return swig_libindri_php_get_newobject($this->_cPtr);
return QueryExpander::__get($var);
}
function __isset($var) {
if ($var === 'thisown') return true;
return QueryExpander::__isset($var);
}
function __construct($env,$param) {
if (is_resource($env) && get_resource_type($env) === '_p_indri__query__PonteExpander') {
$this->_cPtr=$env;
return;
}
$this->_cPtr=new_PonteExpander($env,$param);
}
function expand($originalQuery,$results) {
return PonteExpander_expand($this->_cPtr,$originalQuery,$results);
}
}
?>
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
* ----------------------------------------------------------------------------- */
#ifndef PHP_LIBINDRI_PHP_H
#define PHP_LIBINDRI_PHP_H
extern zend_module_entry libindri_php_module_entry;
#define phpext_libindri_php_ptr &libindri_php_module_entry
#ifdef PHP_WIN32
# define PHP_LIBINDRI_PHP_API __declspec(dllexport)
#else
# define PHP_LIBINDRI_PHP_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
PHP_MINIT_FUNCTION(libindri_php);
PHP_MSHUTDOWN_FUNCTION(libindri_php);
PHP_RINIT_FUNCTION(libindri_php);
PHP_RSHUTDOWN_FUNCTION(libindri_php);
PHP_MINFO_FUNCTION(libindri_php);
ZEND_NAMED_FUNCTION(_wrap_TermExtent_begin_set);
ZEND_NAMED_FUNCTION(_wrap_TermExtent_begin_get);
ZEND_NAMED_FUNCTION(_wrap_TermExtent_end_set);
ZEND_NAMED_FUNCTION(_wrap_TermExtent_end_get);
ZEND_NAMED_FUNCTION(_wrap_new_TermExtent);
ZEND_NAMED_FUNCTION(_wrap_new_Parameters);
ZEND_NAMED_FUNCTION(_wrap_Parameters_set);
ZEND_NAMED_FUNCTION(_wrap_Parameters_get_bool);
ZEND_NAMED_FUNCTION(_wrap_Parameters_get_int);
ZEND_NAMED_FUNCTION(_wrap_Parameters_get_double);
ZEND_NAMED_FUNCTION(_wrap_Parameters_get_INT64);
ZEND_NAMED_FUNCTION(_wrap_Parameters_get_string);
ZEND_NAMED_FUNCTION(_wrap_Parameters_remove);
ZEND_NAMED_FUNCTION(_wrap_Parameters_set_bool);
ZEND_NAMED_FUNCTION(_wrap_Parameters_set_string);
ZEND_NAMED_FUNCTION(_wrap_Parameters_set_int);
ZEND_NAMED_FUNCTION(_wrap_Parameters_set_UINT64);
ZEND_NAMED_FUNCTION(_wrap_Parameters_set_double);
ZEND_NAMED_FUNCTION(_wrap_Parameters_clear);
ZEND_NAMED_FUNCTION(_wrap_Parameters_size);
ZEND_NAMED_FUNCTION(_wrap_Parameters_exists);
ZEND_NAMED_FUNCTION(_wrap_Parameters_load);
ZEND_NAMED_FUNCTION(_wrap_new_ScoredExtentResult);
ZEND_NAMED_FUNCTION(_wrap_ParsedDocument_getContent);
ZEND_NAMED_FUNCTION(_wrap_new_ParsedDocument);
ZEND_NAMED_FUNCTION(_wrap_new_QueryAnnotationNode);
ZEND_NAMED_FUNCTION(_wrap_QueryAnnotation_getQueryTree);
ZEND_NAMED_FUNCTION(_wrap_QueryAnnotation_getAnnotations);
ZEND_NAMED_FUNCTION(_wrap_QueryAnnotation_getResults);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_addServer);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_addIndex);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_close);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_setMemory);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_setScoringRules);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_setStopwords);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_runQuery);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_runQuerydocset);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_runAnnotatedQuery);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_runAnnotatedQuerydocset);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_documentsdocids);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_documents);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_documentMetadatadocids);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_documentMetadata);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_documentIDsFromMetadata);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_termCount);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_onetermCount);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_stemCount);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_termFieldCount);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_stemFieldCount);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_fieldList);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_documentCount);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_onedocumentCount);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_expressionCount);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_documentExpressionCount);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_expressionList);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_documentLength);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_setFormulationParameters);
ZEND_NAMED_FUNCTION(_wrap_QueryEnvironment_reformulateQuery);
ZEND_NAMED_FUNCTION(_wrap_new_QueryEnvironment);
ZEND_NAMED_FUNCTION(_wrap_QueryExpander_runExpandedQuery);
ZEND_NAMED_FUNCTION(_wrap_QueryExpander_expand);
ZEND_NAMED_FUNCTION(_wrap_new_RMExpander);
ZEND_NAMED_FUNCTION(_wrap_RMExpander_expand);
ZEND_NAMED_FUNCTION(_wrap_new_PonteExpander);
ZEND_NAMED_FUNCTION(_wrap_PonteExpander_expand);
#endif /* PHP_LIBINDRI_PHP_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment