Description Usage Arguments Examples
Create or modify a freetext-index. I suggest reading the official documentation at http://franz.com/agraph/support/documentation/current/text-index.html
To modify, use same parameters as the function to create a free text index. However, using this allows you to modify an existing index by naming the indexName you want to work on
1 2 3 4 5 6 7 8 9 10 | createFreeTextIndex(repository, indexName, predicate, indexLiterals = NULL,
indexResources = FALSE, indexFields = NULL, minimumWordSize = NULL,
stopWords = NULL, wordFilter = NULL, innerChars = NULL,
borderChars = NULL, tokenizer = NULL, reIndex = NULL)
modifyFreeTextIndex(repository, indexName, predicate = NULL,
indexLiterals = NULL, indexResources = FALSE, indexFields = NULL,
minimumWordSize = NULL, stopWords = NULL, wordFilter = NULL,
innerChars = NULL, borderChars = NULL, tokenizer = NULL,
reIndex = NULL)
|
repository |
Object of type repository specifying server details and repository to work on. |
indexName |
Name of index of interest |
predicate |
Can be a list. Indicates the predicates that should be indexed. When not given, all predicates are indexed. |
indexLiterals |
A boolean (defaults to true) that determines whether literal are indexed. |
indexResources |
Can be given the values true, false, or short. Default is false. short means to index only the part of the resource after the last # or / character. |
indexFields |
... |
minimumWordSize |
... |
stopWords |
Can be a list. Determines the set of stop-words, words that are not indexed. Defaults to a small set of common English words. To override this default and specify that no stop-words should be used, pass this parameter once, with an empty list(). |
wordFilter |
Can be a list. Specify a word filter, which is an operation applied to words before they are indexed and before they are searched for. Used to 'normalize' words. |
innerChars |
... |
borderChars |
... |
tokenizer |
... |
reIndex |
Defaults to TRUE. Should old triples be re-indexed |
1 2 3 4 5 6 7 | ## Not run:
service = service("localhost","user","password")
rep = repository(catalog(service,"root"),"test")
createFreeTextIndex(rep,indexName = 'index',
predicate = '<p>',stopWords = list('and','it'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.