AnsweredAssumed Answered

Lucene searching question

Question asked by hsjawanda on Nov 15, 2005
Latest reply on Dec 1, 2009 by cyman
Given a node's id, how can I get its Lucene-path (i.e., a string that I can use in a Lucene "PATH:x" query)?

I am having trouble with a lucene query which includes TYPE and PATH fields that used to work fine (or at least as I expected it to work :-) ) before upgrading from PR6 to v1.0.  For example:

+TYPE:"{http://www.alacre.com/cms/content-model-1.0}project" AND PATH:"app:company_home//*/cms:lost"

works, but the following doesn't:

+TYPE:"{http://www.alacre.com/cms/content-model-1.0}project" AND PATH:"app:company_home//*/cms:get lost"

I thought maybe it was because of the space in "get lost", which I replaced with "_", but it still doesn't work.

I am confused: in bootstrapped data, which properties determine the name of a node as used in a Lucene path query?

Outcomes