سؤال

I created a partial search modulo with a little help: xpages partial - full search

What I noticed is that when I created a new document and saving it, I can not search it immediately using this code considering the fact that I'm using session variables....

Also, my xpages application runs on web using Session Based Authentification.

Just to be clear: There are 5 docs. already saved in my App, the search is working OK. I created a new doc & save it. I try to search this last document and it won't work. Sometimes it works, after I logout the app. and login again, but sometimes it doesn't...

Is there any-other solution for this?

هل كانت مفيدة؟

المحلول

The full text index is not a real time operation. On creation of a document the update of the FTIndex is queued and availability of the result depends on total server load.

If you are refering to search in a view (not ftsearch), check your view index that it is set to instant update and if really needed add a view refresh into the post save event

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top