Is is possible to programmatically access Section properties?
Category IBM/Lotus
We're implementing a Google search appliance at work, and indexing text in sections has been a bit problematic. If the section is set to auto-expand, indexing works fine. But if the text is set to auto-collapse, then the indexing ignores the text in the section. And for the particular applications we're targeting on this appliance, there are *many, many* sections, all set to auto-collapse.
I've been able to stick a JavaScript routine at the end of the page load to collapse everything down, so having the document display sections as expanded for indexing but collapsing them on open works OK. My problem is that there are thousands of documents where the sections would have to be reset from auto-collapse to auto-expand. Not something I (nor the users) want to contemplate.
Is it possible to somehow write a script to programmatically access the section properties in a document? I'd like to hit up against all the documents, convert the section launch properties, and then save the document back in place. LotusScript (from my knowledge level) would be ideal. I know nothing about the C API if that's the route I need to go. Is DXL a possibility?
And before you ask... We filter out URLs that have ExpandSection in them. If you leave that there, the search appliance grabs all variations of section openings. Each variation becomes a new document that's crawled. When we did that, we went from 38000 documents being served to nearly 5 million being crawled and 400K being served. In addition, the search results came up with a lot of duplicate results due to the varying URLs. So URL manipulation is (I think) out of the question...
Any and all suggestions graciously accepted and considered...
We're implementing a Google search appliance at work, and indexing text in sections has been a bit problematic. If the section is set to auto-expand, indexing works fine. But if the text is set to auto-collapse, then the indexing ignores the text in the section. And for the particular applications we're targeting on this appliance, there are *many, many* sections, all set to auto-collapse.
I've been able to stick a JavaScript routine at the end of the page load to collapse everything down, so having the document display sections as expanded for indexing but collapsing them on open works OK. My problem is that there are thousands of documents where the sections would have to be reset from auto-collapse to auto-expand. Not something I (nor the users) want to contemplate.
Is it possible to somehow write a script to programmatically access the section properties in a document? I'd like to hit up against all the documents, convert the section launch properties, and then save the document back in place. LotusScript (from my knowledge level) would be ideal. I know nothing about the C API if that's the route I need to go. Is DXL a possibility?
And before you ask... We filter out URLs that have ExpandSection in them. If you leave that there, the search appliance grabs all variations of section openings. Each variation becomes a new document that's crawled. When we did that, we went from 38000 documents being served to nearly 5 million being crawled and 400K being served. In addition, the search results came up with a lot of duplicate results due to the varying URLs. So URL manipulation is (I think) out of the question...
Any and all suggestions graciously accepted and considered...



Comments
- Export each document to a DXL stream
- Do a search/replace to update the section properties
- Import the modified DXL as a temporary document
- Use the importer's .GetFirstImportedID method to get a handle on the temporary document
- Overwrite the original document's item value with the temporary document's data
- Delete the temporary document
Messy, but thorough. Hope that helps.
Posted by Tim Tripcony At 16:51:59 On 02/04/2007 | - Website - |
Posted by Rob McDonagh At 20:54:25 On 02/04/2007 | - Website - |
Posted by Trina At 14:04:21 On 03/04/2007 | - Website - |