Re: beagle-query and uri's with spaces

2009-06-04 Thread D Bera
> Can someone tell me how to use beagle-query with the search-term being a
> uri: with spaces (or other funny characters) in it? For example,
> beagle-query actually returns a hit like
> "file:///var/SDRFiles/COMMON/Suppliers/MCS/Price List.xls" - and I want pass
> this back again to beagle-query as a uri: query. Tried many combinations of
> " and \ and %20 but not getting anywhere!
>
> (If you want to know why, it's because I'm using PHP on a web server to exec
> beagle-query and display simple results, and I'd like a more detailed look
> at the results in some cases. I get the feeling this approach is deprecated,
> but it's starting to work well for indexing the server. Beagle is great!)

Escaping as %20 (and similar hex encoding for other characters) should work.
For the web-server you can try the web-interface approach. Some people
with similar requirements found the web-interface useful.

-- 
-
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle-query and uri's with spaces

2009-06-08 Thread Roger Lainson
Thanks for your advice, but regrettably it just doesn't work: Total 
hits: 0. So is this a bug? (I haven't actually found any documentation 
on what should work).


Cheers, Roger


D Bera wrote:

Can someone tell me how to use beagle-query with the search-term being a
uri: with spaces (or other funny characters) in it? For example,
beagle-query actually returns a hit like
"file:///var/SDRFiles/COMMON/Suppliers/MCS/Price List.xls" - and I want pass
this back again to beagle-query as a uri: query. Tried many combinations of
" and \ and %20 but not getting anywhere!

(If you want to know why, it's because I'm using PHP on a web server to exec
beagle-query and display simple results, and I'd like a more detailed look
at the results in some cases. I get the feeling this approach is deprecated,
but it's starting to work well for indexing the server. Beagle is great!)



Escaping as %20 (and similar hex encoding for other characters) should work.
For the web-server you can try the web-interface approach. Some people
with similar requirements found the web-interface useful.

  
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle-query and uri's with spaces

2009-06-09 Thread D Bera
> Thanks for your advice, but regrettably it just doesn't work: Total hits: 0.
> So is this a bug? (I haven't actually found any documentation on what should
> work).
>
> Can someone tell me how to use beagle-query with the search-term being a
> uri: with spaces (or other funny characters) in it? For example,
> beagle-query actually returns a hit like
> "file:///var/SDRFiles/COMMON/Suppliers/MCS/Price List.xls" - and I want pass
> this back again to beagle-query as a uri: query. Tried many combinations of
> " and \ and %20 but not getting anywhere!
>
> (If you want to know why, it's because I'm using PHP on a web server to exec
> beagle-query and display simple results, and I'd like a more detailed look
> at the results in some cases. I get the feeling this approach is deprecated,
> but it's starting to work well for indexing the server. Beagle is great!)
>
>
> Escaping as %20 (and similar hex encoding for other characters) should work.
> For the web-server you can try the web-interface approach. Some people
> with similar requirements found the web-interface useful.

Double fault!
I was wrong about escaping and there is an extra bug.

I will try to get a patch ready in a few days.

- dBera

-- 
-
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle-query and uri's with spaces

2009-06-20 Thread D Bera
> > Thanks for your advice, but regrettably it just doesn't work: Total hits: 0.
> > So is this a bug? (I haven't actually found any documentation on what should
> > work).
> >
> > Can someone tell me how to use beagle-query with the search-term being a
> > uri: with spaces (or other funny characters) in it? For example,
> > beagle-query actually returns a hit like
> > "file:///var/SDRFiles/COMMON/Suppliers/MCS/Price List.xls" - and I want pass
> > this back again to beagle-query as a uri: query. Tried many combinations of
> > " and \ and %20 but not getting anywhere!
>
> Double fault!
> I was wrong about escaping and there is an extra bug.
>
> I will try to get a patch ready in a few days.

I feel like an aged person - a few days became a few weeks. :)
Nevertheless, the patch is now in git head. This problem should should
be fixed now.

- dBera

--
-
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers