Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Default Full Text Search to Document Contents
WDSI
Is there a way to default the Full Text search option in DeskSite/FileSite 8.x to Document Contents (instead of anywhere) using an nrs script? I don't believe there is a way to do that via the registry.
Thanks,
Jonathan
Find more posts tagged with
Comments
jny
This should do it:
[search.nrs]
======================================================
Option Explicit
CONST nrFullText=83'Document contents in full text
Sub SearchDlg_OnInitDialog(dlg)
dlg.SetAttributeValueByID nrFullText, "", True
End Sub
======================================================
WDSI
Works like a charm. Thank you!
WDSI
I noticed that if you click the "Clear" button it resets the Full Text field to "Anywhere". Any chance there is a snippit that will reset the Full Text search field back to Document Contents for the "Clear_Click" event?
jny
Unfortunately, the sdk does not support catching the On_Click event to the Clear button, and there is also no way of checking the switch;thus there isn't a good way to make DocumentContents stick through scripting after user has pressed 'Clear.'
WDSI
np, thanks for the reply.