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?
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
I have had a similar problem with the standard FT search finding documents because the search hits on content in the administrative fields.
Posted by Per Henrik Lausten At 12:29:58 On 08/07/2006 | - Website - |
(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!
Posted by Ben Poole At 12:02:47 On 08/07/2006 | - Website - |