List Info

Thread: Syntax Problem




Syntax Problem
user name
2006-08-16 11:20:28
Dear all,
  In my slide store a file is stored. It contains text
"anil krishna 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
=\"DAV:\" xmlns:S=\"http://jakarta.apach
e.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>krishna</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
Syntax Problem
user name
2006-08-16 11:25:44
Hi,

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


Cheers

Marco


On 8/16/06, aslam bari <iamaslamokyahoo.co.in> wrote:
> Dear all,
>   In my slide store a file is stored. It contains text
"anil krishna 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
=\"DAV:\" xmlns:S=\"http://jakarta.apach
e.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>krishna</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-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org

Syntax Problem
user name
2006-08-16 12:23:36
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 krishna sharma
> shree" does *not* contain "vijay" ,
so the result is ok .... unless
> there are files that contain
> "vijay", "krishna" and
"shree" in your repository .
> 
> 
> Cheers
> 
> Marco
> 
> 
> On 8/16/06, aslam bari <iamaslamokyahoo.co.in> wrote:
>> Dear all,
>>   In my slide store a file is stored. It contains
text "anil krishna 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
=\"DAV:\"
>> xmlns:S=\"http://jakarta.apach
e.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>krishna</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-unsubscribejakarta.apache.org
> For additional commands, e-mail: slide-user-helpjakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Syntax-Problem-tf2114676.html#
a5831374
Sent from the Jakarta Slide - User forum at Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )