Hi guys,
this proposal will be for an improvement.
I propose to add the chance of suggest terms ( for Spellchecking and Auto
Suggest) based only to a subset of Documents.

In this way we can provide security implementations that will allow users
to see suggestions of terms , only from allowed to see documents.

These are the proposed approaches :

*Filter query Auto Suggest*

1) retrieve the suggested tokens from the input text using the already
cutting edge FST based suggester
2) use a similar approach of the TermEnum because
a) we have a small set of suggestions ( reasonable, because we can filter
to 5-10 suggestions max)
So the termEnum approach will be fast.
b) we can get for each suggested token the posting list and make the
intersection with the resulting DocId list ( from the filter query), if
null, not return the suggestion.

*Filter query Spellcheck*

1) we can use the already cutting edge FSA based direct index spellchecker
and get the suggestions
2) use a similar approach of the TermEnum because
a) we have a small set of suggestions ( reasonable, because we can filter
to 5-10 suggestions max)
So the termEnum approach will be fast.
b) we can get for each suggested token the posting list and make the
intersection with the resulting DocId list ( from the filter query), if
null, not return the suggestion.

Of course we will have to add a further parameter in the request handler,
something like :
spellcheck.qf

Let me know your impression and ideas,

Cheers





-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to