>Hi Roman,
>
>The text index is per-dataset. It is found by looking in the Context for the
>Symbol("http://jena.apache.org/text#index) which is the Java constant
>TextQuery.textIndex.
I looked at the Context of the dataset and also tried to delete the
corresponding Symbol before call the method createLucene. There was no change
in the result after running the program. I can't explain why but I must skipped
the following part before write my code.
>
>Graph specific indexing is described in:
>
>http://jena.apache.org/documentation/query/text-query.html#graph-specific-indexing[http://jena.apache.org/documentation/query/text-query.html#graph-specific-indexing]
>
>Did that not work for you?
I tested it now and its works as it should. Thank you very much.
> Could you produce a complete, minimal example? Details such as what is in
> each of the graphs and the text index configuration matter here.
I want to use two different ontologies(each in his own named graph) for two
different autocomplete html-input fields. So the statements in both named graph
has the format:
s:
http://www.example.com/ResourceHasLabelFromOntology1[http://www.example.com/ResourceHasLabelFromOntology2]
p: rdfs:label
o: LabelFromOntology1[LabelFromOntology2]
Thanks again,
Roman