Search code examples
xmlmarklogicmarklogic-8tei

MarkLogic search:search() not searching a specific TEI element


I have a MarkLogic database containing TEI XML documents. I built an application to search and display these documents. During testing, we found that certain keywords were not being found when searched and narrowed down the problem to realize that the keywords that weren't being found are in the following element:

<foreign xml:lang="lat">unio cum ipso</foreign>

Searching for the latin phrase "unio cum ipso" returns zero results. I'm thinking it has something to do with the @xml:lang, but I'm wondering if anyone has encountered a similar problem and how they solved it. Thanks!


Solution

  • If you are doing a stemmed search (the default) it will be language sensitive and will use the default language from the database unless specified otherwise. If you want to do a cross-language search, use the unstemmed option.