cancel
Showing results for 
Search instead for 
Did you mean: 

query that searh all properties

pmarreddy
Champ in-the-making
Champ in-the-making
hi there i cannot figure out how to query for a node that has "cat" on any of the properties.

@cm\:title:"banana" is for property named title, for me i need to find banana that can be on title property or description property  or any other property like tag.

thanks prasanth
5 REPLIES 5

derek
Star Contributor
Star Contributor
You can't do that at the moment.  You will have to use the dictionary service to iterate over the relevant properties.

Regards

andy
Champ on-the-rise
Champ on-the-rise
Hi

In the medium term (2.0) I will be adding support to query all attributes of a given type, and defined a query field that will expand to a query that does … (find in any attribute specified in a list of attributes defined on the search parameters) . It builds all the "or" parts for you.

Something like

    * d\:text:"Search in all text attributes but not content"
    * d\:content:"Search in all content"
    * ATTRIBUTES:"Search in any of the user defined attributes as defined by QNAME in the search parameters"
Regards

Andy

pmarreddy
Champ in-the-making
Champ in-the-making
thanks for the reply. that would do for me.

prasanth

rdanner
Champ in-the-making
Champ in-the-making
Hi

In the medium term (2.0) I will be adding support to query all attributes of a given type, and defined a query field that will expand to a query that does … (find in any attribute specified in a list of attributes defined on the search parameters) . It builds all the "or" parts for you.

Something like

    * d\:text:"Search in all text attributes but not content"
    * d\:content:"Search in all content"
    * ATTRIBUTES:"Search in any of the user defined attributes as defined by QNAME in the search parameters"
Regards

Andy

Andy

what is the long term plan for the saved search.  what is the actual full schema of those xml files.

andy
Champ on-the-rise
Champ on-the-rise
Hi

Type based queries are in 2.0. The fields ALL and TEXT can now be configured to be a list of other field names (as strings). TEXT does d:content by default. ALL does all attributes of any type by default - that produce any searchable tokens from the search string. That means it will not search numeric values unless the search string is numeric etc.

Regards

Andy