About Duffbert...

Duffbert's Random Musings is a blog where I talk about whatever happens to be running through my head at any given moment... I'm Thomas Duff, and you can find out more about me here...

Email Me!

Search This Site!

Custom Search

I'm published!

Co-author of the book IBM Lotus Sametime 8 Essentials: A User's Guide
SametimeBookCoverImage.jpg

Purchase on Amazon

Co-author of the book IBM Sametime 8.5.2 Administration Guide
SametimeAdminBookCoverImage.jpg

Purchase on Amazon

MiscLinks

Visitor Count...



View My Stats

« *This* doesn't happen very often... | Main| Book Review - The Frumious Bandersnatch by Ed McBain »

Question about "out of the box" Notes searching options...

Category IBM/Lotus
I had this question posed to me the other day.  I think I know the answer, but I wanted to see if I was overlooking something obvious.  It *does* happen all too often...  :)

Web-enabled database "X" is full-text indexed and allows searching through a normal search function.  The particular view that's used for the search includes all of the documents that should be eligible for searching.  Included on each document are standard administrative fields like author, when created, etc...

The user would like to be able to exclude certain fields from being included in the search results.  So for instance, if the author of 100 documents was Jane Doe, and a user does a search for "Jane Doe", the user shouldn't see those documents that have "Jane Doe" in the author field.  If the name shows up in the body of the document, it should be returned.  Just ignore the author field...

I told them I can't exclude fields in the search like that using just plain vanilla searching...

Any far-out ideas I'm missing?  Any painfully obvious ideas I'm missing?

Comments

Gravatar Image1 - I agree with Ben on his idea number 1: construct a FT query and include all the fields in scope for the search.

I have had a similar problem with the standard FT search finding documents because the search hits on content in the administrative fields.

Gravatar Image2 - Two ideas spring immediately to mind:

(1) Depending on the number of fields that you wish to explicitly include in your search, you could construct an FT query based on the query submitted by the user, and search with that (i.e. search for the submitted value in a subset of the fields available, by contructing the Domino full-text query on the fly)

(2) Turn into Mr. Fancy-pants, and have your search view return XML which you then filter with XSL. Do-able, but pretty complex.

Other than these two ideas, you might want to investigate the FT querying terms availale in Domino, and see whether you can use it to explicitly exclude certain fields from the search -- that would be a nice simple solution.

Good luck, and keep us posted!

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Want to support this blog or just say thanks?

When you shop Amazon, start your shopping experience here.

When you do that, all your purchases during that session earn me an affiliate commission via the Amazon Affiliate program. You don't have to buy the book I linked you to (although I wouldn't complain!). Simply use that as your starting point.

Thanks!

Thomas "Duffbert" Duff

Ads of Relevance...