I am using Custom search functionality for searching the Views. But after creating a new document, If i search it says zero results found. I dirctly serched in view then also it is not picking up. even after refreshing the view the result is same. but the doument is in view. But after 1/2 an hour or one it is picking the same. on putting ctrl + F it is finding the correct one. at any point of time. I am really puzzled over this. Following is my code -----------------------------------------------------start-------------
If the update frequency for your FT index is already set to “Immediately”, there’s little you can do.
You could issue a NotesDatabase.UpdateFTIndex() call in an agent every time a document is created, but I would definitely not recommend that on a server that’s used for anything but test purposes. Even then you have no control over when the update has finished.
Your only real option is to not rely on a navigation, that’s based on search results only. Provide a standard view and include an “Expires” HTTP header set to 0 in the views $$ViewTemplate to reflect the most current changes.
I have hard coded the value in the form.Also tried hardcoding @SetHTTPHeader(“Expires”;“0”) in HTML Body Content in all the $$ViewTemplates but notbhing seems to search a new document which is created.
Really i am not aware who this thulasi is. May be they may also be facing the same problem. I left for the day and i came back now only. Please help me on this. It is causing a headache for me.
Hope u’ll understand.
Even I have hard coded the value in the form.
Also tried hardcoding @SetHTTPHeader(“Expires”;“0”) in HTML Body Content in all the $$ViewTemplates but nothing seems to search a new document which is created.
Well, the wording in this and the other posting were exactly like yours …
There is NO way to make a newly created doc appear in the search results immediately. Forget about the META tags, setting HTTP headers is much superior. But even this can only ensure, that a regular view is re-fetched from the server instead of using a cached version.
As I said before: Searching a view in reality means searching the FT index, limited to the documents in a view. If the document is in the view, but not in the FT index yet, your toast.