cancel
Showing results for 
Search instead for 
Did you mean: 

Why does this hit searching the GUI, but not node browser?

rsosborn
Champ in-the-making
Champ in-the-making
I have an XML document with a node named "title".  This query finds the document in the Search window.
I'm getting no hits with it programmatically, or in the Node Browser search window. 

I am searching the "SpacesStore" and everything else I can find which would be identical.


"@cm\:title:"smith""
3 REPLIES 3

patil
Champ on-the-rise
Champ on-the-rise
Hi,
Alfresco considers name and title differently.

If you want to search by name use @cm\:name:"smith"
If you want to search by title use @cm\:title:"smith"

If you want search content use TEXT:"smith"


Try above queries in NodeBrowser.

Thanks,
Patil
Cignex technologies
Bangalore

rsosborn
Champ in-the-making
Champ in-the-making
I understand what you're saying.  This is my issue though.

I have an XML document with a node named "title".  I want to
find this document only.  (I.E. <title>John Smith's document</title>)

I can find this it easily with the Explorer search interface.
The exact same query (below) turns up nothing programmatically and in
the NodeBrowser, no matter which Store I search against. 

I can't figure out what the difference in the two searches is.
I tried turning on the logging level to see if I can view the Explorer
query that is generated.  Still I am getting nothing.

"@cm\:title:"Smith""

rsosborn
Champ in-the-making
Champ in-the-making
Looking at it, I believe it is because programmatically and in the NodeBrowser, Alfresco
uses the Searcher component.  Maybe in the Explorer search GUI it is Xpath?

http://wiki.alfresco.com/wiki/Search_Documentation