You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Aslam Bari <ia...@yahoo.co.in> on 2006/08/27 15:35:23 UTC
How to use IS-Collection
Dear all,
I am using DASL query search. How can i restrict that results must contains
only files not collections. In <where> clasuse i have another contions too.
<D:where>
<S:propcontains><D:prop><D:displayname/></D:prop></D:propcontains>
</D:where>
The results must contains display names of only files not collections's.
Thanks...
--
View this message in context: http://www.nabble.com/How-to-use-IS-Collection-tf2172526.html#a6006950
Sent from the Jakarta Slide - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: How to use IS-Collection
Posted by aslam bari <ia...@yahoo.co.in>.
Thanks Julian,
Its working. My Problem has solved. But now i have a small problem which i have posted to wiki many times, but could not get the answer yet. Can you help me. My Problem is:-
I am using Slide2.2 with LuceneContentIndexer. I am searching resources by giving DASL query. This is giving results by using indexes as I think. But I want a extra information to show i.e. Words Frequency. Means When i want to search "TRIAL". It gives me result all the files name which contains the word "TRIAL". Now I also want to show "how many times this word ("TRIAL") has occur in that file means Hits within the Document.
How can i achive this?
Thanks in Advance.
Julian Reschke <ju...@gmx.de> wrote:
Well,
put in a top-level DAV:and, with the expression you already have, and
the "not(is-collection)".
Best regards, Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------
Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Re: How to use IS-Collection
Posted by Julian Reschke <ju...@gmx.de>.
Well,
put in a top-level DAV:and, with the expression you already have, and
the "not(is-collection)".
Best regards, Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: How to use IS-Collection
Posted by aslam bari <ia...@yahoo.co.in>.
Thanks Julian ,
But my question is where to fit the <d:not>...</D:not> syntax in my query syntax. Actually my is as below. I want to know where to insert that is-collection clause in this syntax.
<D:where>
<D:or>
<D:or>
<D:contains>dear</D:contains>
<D:contains>hello</D:contains>
</D:or>
<D:or>
<D:propcontains><D:prop><D:displayname/><D:literal>hello</D:literal></D:prop></D:propcontains>
<D:propcontains><D:prop><D:author/></D:prop><D:literal>dear</D:literal></D:propcontains>
</D:or>
</D:or>
</D:where>
:--Acutally the above syntax will search for words dear and hello in file contents as well as name of the file and author name and will display resources those matches but i don't want to include folders in result. Now tell me where should i insert your given sample code?
Thanks....
Julian Reschke <ju...@gmx.de> wrote:
Aslam Bari schrieb:
> Dear all,
> I am using DASL query search. How can i restrict that results must contains
> only files not collections. In clasuse i have another contions too.
>
>
>
>
>
>
> The results must contains display names of only files not collections's.
>
> Thanks...
This
should work.
See
.
Best regards, Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------
Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Re: How to use IS-Collection
Posted by Julian Reschke <ju...@gmx.de>.
Aslam Bari schrieb:
> Dear all,
> I am using DASL query search. How can i restrict that results must contains
> only files not collections. In <where> clasuse i have another contions too.
>
> <D:where>
>
> <S:propcontains><D:prop><D:displayname/></D:prop></D:propcontains>
> </D:where>
>
> The results must contains display names of only files not collections's.
>
> Thanks...
This
<D:not><D:is-collection/></D:not>
should work.
See
<http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html#OPERATOR_is-collection>.
Best regards, Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org