On 19 Apr 2012, at 15:42, Kunal Jain wrote:

> Dear All,

Hi there,

> I am developing an application using Jena along with TDB store. I have
> loaded around 4 million triples in my store. A small subset of my triples is
> as follows:

...

> Now I want to do a free text matching for autosuggest kind functionality. I
> have got this query to run against my store

>                             ?subject vs:name ?subjectName
> 
>                            FILTER regex(?subjectName, \"^Light\", \"i\")

> I this query I am trying to find triples which start with a particular word,
> i.e starting with 'Light'. Execution of this query is taking around 20
> seconds.

While it's possible this could be improved, it's never going to be great since 
the search is unindexed.

LARQ adds a proper free text index [1] which should be much better. This is now 
a separate module, I believe (Paolo?).
Personally I've used a separate trie index for autocompletion, since it tends 
to get hammered.

Damian

[1] <http://incubator.apache.org/jena/documentation/larq/index.html>

Reply via email to