Hi there, I am looking at including a search function a little like a google search and include it into an existing application. Basically it would be a field with a search button. The user types a word to search and hits the button and his presented with a view containing the result documents.
I have looked at the forum here, the help and other sources, and most have decent help for a web search, but my thing is going to be in the Notes Client, so it should be easier, right? Well finding help don't seem to be.
I have thought about writing a script that would grab the content of the field and do a FTSearch on the database, then put the collection I get back into a folder and opening the folder, but there has to be a more.... well, built-in way.
Has anyone done something like this before? Can anyone give me some pointers? How can I have something similar to the Web Search Form and the Search Result view of the web into the Notes Client?
--- Alain
Subject: Search functionnality in the Notes Client
Hi,
Have you looked on Openntf?
it’s not for Notes client but anyway
Project: Domgle (Managed by Julien Bottemanne)
http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/Domgle
Subject: RE: Search functionnality in the Notes Client
yeah, that looks very neat, but again, I need to build this in the Notes Client…
Subject: RE: Search functionnality in the Notes Client
HIJEAN DONT WORRY
i will get exact code for you tomorrow
just now only i saw your quer ok
no:9731055656
Subject: Search functionnality in the Notes Client
There is a simple agent call that will do the searching you want. I have been using it for the past 10 years.
What it does is:
-
Search the entire database, not just one view.
-
Returns a formatted document with the results
-
Is actually faster than using the NotesNewsletter concept
We have it running in about 10 databases and everyone likes it better than the normal Notes full text search.
It does not, highlight the search field data in the Notes documents. None of our users have said a word about that.
Subject: RE: Search functionnality in the Notes Client
How are you doing that? A script agent that searches through a FTSearch, and you put the search result in a multi-valued field on a document? How do you open the search result document? (Not the one used to display, but the actual document returned by the search?)
Subject: RE: Search functionnality in the Notes Client
Done as follows:
-
Full text search call
-
Build output to Notes form with link to documents as Notes URL link and the needed display fields
-
Display the form to the user
Subject: RE: Search functionnality in the Notes Client
ohhh, that is a web thing… no I need to do this in a Notes environment, not web…
Subject: RE: Search functionnality in the Notes Client
Use a Doclink, now that I remember I did something similar in 1999, create a RTF field and populate it with Doclinks for the docs found. In current versions there are a lot more formatting options.
just remember to flag the docs for delete either in Queryclose/Terminate events or a night time agent.
Subject: RE: Search functionnality in the Notes Client
hmmm, interresting idea… thanks
Subject: RE: Search functionnality in the Notes Client
Doesn’t need to be web only. I have a script doing this and building a table within a rich text field using a notesstream and a notesmimeentity.
I can write html, use the (limited) css available in the Notes client and output a table with links, header rows and formatting.
You do need to save the document, but the search documents can be purged overnight with an agent.
Subject: RE: Search functionnality in the Notes Client
No this is NOT a web thing. You can display the html content in a Notes client. The Notes URL will launch the document in the Notes client that same as a document link does.
Subject: RE: Search functionnality in the Notes Client
Oh ok then, I will take a look at it…
Subject: Search functionnality in the Notes Client
Have you clicked on Menu option View/Search This View,
Wouldn’t that work for you.
Subject: RE: Search functionnality in the Notes Client
hmmm, not really since the search would be launched from a form, and not a view, and search the whole database and not just a single view…
Subject: RE: Search functionnality in the Notes Client
There isn’t really a built-in way, but I wrote an article about this for The View a few years back. The free download that accompanies this article may be of help: Views Part 1.
Subject: RE: Search functionnality in the Notes Client
well the search itself is pretty easy to do is Script, all the functionalities are there, the part that I find missing really is a way to display the resulting document collection. It seems that it should be possible to do that…
Subject: Search functionnality in the Notes Client
Sure, you can build something like that, but since it’s already built into the client (and accessible in EVERY application), it’s not a common add-in. If your users can’t easily find the search bar, you can always add an action to your views that does @Command([ViewShowSearchBar]), perhaps switching to an “all documents” view at the same time.
Subject: RE: Search functionnality in the Notes Client
hmmm, not really since the search would be launched from a form, and not a view, and search the whole database and not just a single view…
Subject: RE: Search functionnality in the Notes Client
Then get used to using a folder for display. Switching to an all documents view will search the whole database (unless you have a very strange idea of what an all documents view might contain).