« Return to Thread: Syntax Problem

Re: Syntax Problem

by Ven Helsing :: Rate this Message:

Reply to Author | View in Thread

Sorry ,
  I wrote wrong. It must be "anil" instead of "vijay". By the way my
problem has solved. But i have a different king of problem. If you can
help me, i will be thankful to you.
  1. I want to get Ducument Hits by using DASL query(slide 2.2).
  2. If a user add a property(Custom) runtime, it should be
automatically indexed. and used in Search.

  Thanks...



Marco Ferretti wrote:
Hi,

I'm basing my reply on what you wrote : the text "anil kumar sharma
shree" does *not* contain "vijay" , so the result is ok .... unless
there are files that contain
"vijay", "kumar" and "shree" in your repository .


Cheers

Marco


On 8/16/06, aslam bari <iamaslamok@yahoo.co.in> wrote:
> Dear all,
>   In my slide store a file is stored. It contains text "anil kumar sharma shree". Now when i search using DASL query for the any phrase using <D:or> , it gives me result. But why <D:and> not gives the result. My Syntax it that.
>
>   "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n" +
>   "<D:searchrequest xmlns:D =\"DAV:\" xmlns:S=\"http://jakarta.apache.org/slide/\">" +
>   "<D:basicsearch>" +
>   "<D:select>" +
>   "<D:prop>" +
>   "<D:getcontentlength/>" +
>   "<D:displayname/>" +
>   "<D:author/>" +
>   "</D:prop>" +
>   "</D:select>" +
>   "<D:from>" +
>   "<D:scope>" +
>   "<D:href>" + "/slide/files" + "</D:href>" +
>   "<D:depth>infinity</D:depth>" +
>   "</D:scope>" +
>   "</D:from>" +
>   "<D:where>" +
>   "<D:and>"+
>   "<D:contains>vijay</D:contains>"+
>   "<D:contains>kumar</D:contains>"+
>   "<D:contains>shree</D:contains>" +
>   "</D:and>" +
>   "</D:where>" +
>   "</D:basicsearch>" +
>   "</D:searchrequest>";
>
>   The above query does not gives me result, though it must give.
>
>   Help plz.
>
>
>
> ---------------------------------
>  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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org

 « Return to Thread: Syntax Problem