Custom search not fetching documents

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-------------

sView := “/Search+View”;

“[/” + @ReplaceSubstring(@Subset(@DbName; -1); “\”; “/”) + sView + “/?SearchView&Query=”+Query+“&SearchOrder=”+@Text(Sort)+“&SearchMax=”+@Text(MaxResults)+“&SearchWV=TRUE”+“&SearchThesaurus=FALSE”+“&SearchFuzzy=FALSE]”

-----------------------------------------------------------end--------

I dont know where it is wrong. Could you please help me on this. Urgent Please

Subject: Custom search not fetching documents

You’re not actually searching the view. Your doing a full-text search restricted to documents contained in the view.

Consequentially, search will not return the new document, until the FT index has been updated.

Subject: RE: Custom search not fetching documents

How to overcome this?any suggestions?

Subject: RE: Custom search not fetching documents

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.

Subject: RE: Custom search not fetching documents

Can u be please explain me on the Expires HTTP header option which I should use…

Where should i set it in the $$ViewTemplate…there are many $$ViewTemplate views in my database.

Also there is a separate view called SearchView in my datbase. Can you tel me where should I add the HTTP value?

Or should I create a separate agent for this to update the freqency for a database with a full-text index? Please advise.

Subject: RE: Custom search not fetching documents

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.

Pls help…

Subject: RE: Custom search not fetching documents

Posting the same stuff twice is considered bad style. Using different logins doesn’t make it any better.

I already explained why search might not return the the expected result instantly and I don’t feel like adding more now.

Subject: RE: Custom search not fetching documents

hay Harkpabst Meliantrop,

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.

Pls help…

thanks in advance

Subject: RE: Custom search not fetching documents

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.

Subject: RE: Custom search not fetching documents

Harkpabst Meliantrop,can you give me your number. I would like to talk in detail about this to you.

thanks

Lalloo prasad

Subject: RE: Custom search not fetching documents

Sorry, but I don’t see how this would benefit me.

I donate my time and limited experience to the forum. To solve individual problems beyond this scope, you should consider to hire a consultant.

Subject: RE: Custom search not fetching documents

Just i wanna to know if there is any solution or not?

Laloo prasad