Re: Searching all collections

Müller, Wolfgang <[email protected]> Sun, 18 Sep 2011 23:18:15 +0200
Newsgroups gmane.comp.gnu.gift.general
Message-ID <CAMVO3gCx-BSeDvTkOxohz=gnW5q5Y+_+Q2w5t06EcsqagrirTw@mail.gmail.com>
--===============1822399940481428737==
Content-Type: multipart/alternative; boundary=90e6ba6e8ab8c0da9904ad3dc312

--90e6ba6e8ab8c0da9904ad3dc312
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all,
I think there is.

Look into gift-config.mrml. In gift-config.mrml, query processors are built
of other query processors. The separate_normalisation algorithm makes use o=
f
it. It uses 4 query engines that are configured to use the same collection
but use different features on these collections. (As I recall, the queries
are processed in parallel, making use of multiprocessor architectures.
Debugging that stuff was good fun.) You could configure the query processor=
s
to use 4 different collections and this should do about what you want them
to do.

There would be an issue, though: The ranking method of GIFT considers the
other images of one collection for scoring. As a consequence, if you run 4
queries in 4 collections, the ranking values would not be quite
commensurate. However, if this did not hurt you before, knowing that won't
hurt you either.

Best,
Wolfgang

On Sun, Sep 18, 2011 at 2:41 PM, Henning M=FCller <
[email protected]> wrote:

> Hi Pedro,
>
> I think that querying separately is the easiest way. Another possibility =
is
> to re-index all images into a single collection, which might be a bit fas=
t.
>
> I do not think that there is a function in GIFT to query several
> collections.
>
> Kind regards, Henning
>
>
> On 9/16/11 4:15 PM, Pedro Pinhao wrote:
>
>> Hello,
>>
>> I'm trying to query all collections for a similar image in the server.
>> Is there any way to do this?
>>
>> I've tried iterating trough all collections one by one but that is not
>> very good performance wise.
>>
>> Thank You,
>>
>> Pedro Pinh=E3o
>>
>>
>>
>> ______________________________**_________________
>> help-GIFT mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/**listinfo/help-gift<https://lists.gnu.org=
/mailman/listinfo/help-gift>
>>
>
> --
> Henning M=FCller, PhD, Prof.
> HES-SO Valais
> TechnoArk 3, 3960 Sierre, Switzerland
> Tel. +41 27 606 9036
> http://medgift.hevs.ch/
>
> ______________________________**_________________
> help-GIFT mailing list
> [email protected]
> https://lists.gnu.org/mailman/**listinfo/help-gift<https://lists.gnu.org/=
mailman/listinfo/help-gift>

--90e6ba6e8ab8c0da9904ad3dc312
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<span class=3D"Apple-style-span" style=3D"font-family: arial, sans-serif; f=
ont-size: medium; "><table class=3D"Bs nH iY" cellpadding=3D"0" style=3D"ba=
ckground-image: initial; background-attachment: initial; background-origin:=
 initial; background-clip: initial; background-color: rgb(255, 255, 255); w=
idth: 976px; position: relative; -webkit-border-horizontal-spacing: 0px; -w=
ebkit-border-vertical-spacing: 0px; padding-top: 0px; padding-right: 0px; p=
adding-bottom: 0px; padding-left: 0px; border-collapse: collapse; backgroun=
d-position: initial initial; background-repeat: initial initial; ">
<tbody><tr><td class=3D"Bu" style=3D"margin-top: 0px; margin-right: 0px; ma=
rgin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; vertica=
l-align: top; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; pa=
dding-left: 0px; ">
<div class=3D"nH if" style=3D"padding-top: 0px; padding-right: 0px; padding=
-bottom: 1px; padding-left: 0px; "><div class=3D"nH"><div class=3D"nH hx" s=
tyle=3D"color: rgb(0, 0, 0); padding-top: 4px; padding-right: 8px; padding-=
bottom: 4px; padding-left: 8px; ">
<div class=3D"nH"><div class=3D"h7 ie nH oy8Mbf" style=3D"padding-bottom: 0=
px; clear: both; "><div class=3D"Bk" style=3D"position: relative; margin-bo=
ttom: 10px; border-right-width: 1px; border-bottom-width: 1px; border-left-=
width: 1px; border-top-style: solid; border-right-style: solid; border-bott=
om-style: solid; border-left-style: solid; border-top-color: rgb(239, 239, =
239); border-right-color: rgb(239, 239, 239); border-left-color: rgb(239, 2=
39, 239); border-bottom-color: rgb(226, 226, 226); border-top-width: 0px; b=
order-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bo=
ttom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; width: 727p=
x; ">
<div class=3D"G3 G2" style=3D"padding-top: 3px; background-color: rgb(255, =
255, 255); border-right-width: 1px; border-bottom-width: 1px; border-left-w=
idth: 1px; border-right-style: solid; border-bottom-style: solid; border-le=
ft-style: solid; border-right-color: rgb(188, 188, 188); border-bottom-colo=
r: rgb(188, 188, 188); border-left-color: rgb(188, 188, 188); border-top-wi=
dth: 1px; border-top-style: solid; border-top-color: rgb(188, 188, 188); bo=
rder-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bot=
tom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; ">
<div><div id=3D":1z"><div class=3D"HprMsc mNrSre"><div class=3D"gs"><div id=
=3D":3b" class=3D"ii gt" style=3D"font-size: 13px; margin-top: 5px; margin-=
right: 15px; margin-bottom: 5px; margin-left: 15px; padding-bottom: 20px; p=
osition: relative; z-index: 2; ">
<div id=3D":3a">Hi all,<div>I think there is.<div><br></div><div>Look into =
gift-config.mrml. In gift-config.mrml, query processors are built of other =
query processors. The separate_normalisation algorithm makes use of it. It =
uses 4 query engines that are configured to use the same collection but use=
 different features on these collections. (As I recall, the queries are pro=
cessed in parallel, making use of multiprocessor architectures. Debugging t=
hat stuff was good fun.) You could configure the query processors to use 4 =
different collections and this should do about what you want them to do.</d=
iv>
<div><br></div><div>There would be an issue, though: The ranking method of =
GIFT considers the other images of one collection for scoring. As a consequ=
ence, if you run 4 queries in 4 collections, the ranking values would not b=
e quite commensurate. However, if this did not hurt you before, knowing tha=
t won&#39;t hurt you either.</div>
<div><br></div><div>Best,</div><div>Wolfgang</div></div></div></div></div><=
/div></div></div></div></div></div></div></div></div></div></td></tr></tbod=
y></table></span><br><div class=3D"gmail_quote">On Sun, Sep 18, 2011 at 2:4=
1 PM, Henning M=FCller <span dir=3D"ltr">&lt;<a href=3D"mailto:henning.muel=
[email protected]">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">Hi Pedro,<br>
<br>
I think that querying separately is the easiest way. Another possibility is=
 to re-index all images into a single collection, which might be a bit fast=
.<br>
<br>
I do not think that there is a function in GIFT to query several collection=
s.<br>
<br>
Kind regards, Henning<div><div></div><div class=3D"h5"><br>
<br>
On 9/16/11 4:15 PM, Pedro Pinhao wrote:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class=3D"h5=
">
Hello,<br>
<br>
I&#39;m trying to query all collections for a similar image in the server.<=
br>
Is there any way to do this?<br>
<br>
I&#39;ve tried iterating trough all collections one by one but that is not<=
br>
very good performance wise.<br>
<br>
Thank You,<br>
<br>
Pedro Pinh=E3o<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
help-GIFT mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a=
><br>
<a href=3D"https://lists.gnu.org/mailman/listinfo/help-gift" target=3D"_bla=
nk">https://lists.gnu.org/mailman/<u></u>listinfo/help-gift</a><br>
</blockquote>
<br>
-- <br>
Henning M=FCller, PhD, Prof.<br>
HES-SO Valais<br>
TechnoArk 3, 3960 Sierre, Switzerland<br>
Tel. <a href=3D"tel:%2B41%2027%20606%209036" value=3D"+41276069036" target=
=3D"_blank">+41 27 606 9036</a><br>
<a href=3D"http://medgift.hevs.ch/" target=3D"_blank">http://medgift.hevs.c=
h/</a><br>
<br>
______________________________<u></u>_________________<br>
help-GIFT mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a=
><br>
<a href=3D"https://lists.gnu.org/mailman/listinfo/help-gift" target=3D"_bla=
nk">https://lists.gnu.org/mailman/<u></u>listinfo/help-gift</a></blockquote=
></div><br>

--90e6ba6e8ab8c0da9904ad3dc312--


--===============1822399940481428737==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
help-GIFT mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-gift
--===============1822399940481428737==--