Package | Description |
---|---|
com.allanbank.mongodb |
Provides a Java driver for the MongoDB document store that allows asynchronous invocation of requests.
|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
Modifier and Type | Method and Description |
---|---|
List<TextResult> |
MongoCollection.textSearch(Text.Builder command)
Invokes a
text command on the server. |
void |
MongoCollection.textSearchAsync(Callback<List<TextResult>> results,
Text.Builder command)
Invokes a
text command on the server. |
Future<List<TextResult>> |
MongoCollection.textSearchAsync(Text.Builder command)
Invokes a
text command on the server. |
Modifier and Type | Method and Description |
---|---|
static Text.Builder |
Text.builder()
Creates a new builder for a
Text command. |
Text.Builder |
Text.Builder.language(String language)
Sets the language to use when stemming the search terms to the new
value.
|
Text.Builder |
Text.Builder.limit(int limit)
Sets the maximum number of document to return to the new value.
|
Text.Builder |
Text.Builder.query(DocumentAssignable query)
Sets the standard MongoDB query document to limit the final results
to the new value.
|
Text.Builder |
Text.Builder.readPreference(ReadPreference readPreference)
Sets the
ReadPreference specifying which servers may be used
to execute the Text command. |
Text.Builder |
Text.Builder.reset()
Resets the builder back to its initial state.
|
Text.Builder |
Text.Builder.returnFields(DocumentAssignable returnFields)
Sets the fields to return from the query to the new value.
|
Text.Builder |
Text.Builder.searchTerm(String searchTerm)
Sets the search term to the new value.
|
Text.Builder |
Text.Builder.setLanguage(String language)
Sets the language to use when stemming the search terms to the new
value.
|
Text.Builder |
Text.Builder.setLimit(int limit)
Sets the maximum number of document to return to the new value.
|
Text.Builder |
Text.Builder.setQuery(DocumentAssignable query)
Sets the standard MongoDB query document to limit the final results
to the new value.
|
Text.Builder |
Text.Builder.setReadPreference(ReadPreference readPreference)
Sets the
ReadPreference specifying which servers may be used
to execute the Text command. |
Text.Builder |
Text.Builder.setReturnFields(DocumentAssignable returnFields)
Sets the fields to return from the query to the new value.
|
Text.Builder |
Text.Builder.setSearchTerm(String searchTerm)
Sets the search term to the new value.
|
Constructor and Description |
---|
Text(Text.Builder builder)
Creates a new Text.
|
Modifier and Type | Method and Description |
---|---|
List<TextResult> |
AbstractMongoCollection.textSearch(Text.Builder command)
Invokes a
text command on the server. |
void |
AbstractMongoCollection.textSearchAsync(Callback<List<TextResult>> results,
Text.Builder command)
Invokes a
text command on the server. |
Future<List<TextResult>> |
AbstractMongoCollection.textSearchAsync(Text.Builder command)
Invokes a
text command on the server. |
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.