Chris,

\It looks like you are trying to use lib-search with the rapid
application demo? Is that true?


Yes -- with the versi and libsearch combo.

Are you also trying to generate facets on the two collections?


Not at the moment but eventually. Just trying right now to get lib- search to limit a search to documents from a particular collection.

I would say you have right idea, in either case. I would configure
lib-search just as you said.

With that configuration, when the querystring has
"coll=repository:odesi" in it, the function build-query-element in
search-ui.xqy will generate the following collection criteria to resolve
your query appropriately:

<search:collections>
<search:set-id>repository</search:set-id>
<search:value>odesi</search:value>
</search:collections>


Thanks Chris -- glad to know I'm on the right track. I've tried dumping the XML created by build-query-element to see if it was picking up the collection component but it doesn't seem to be. I will try logging the function that constructs the collection search criteria to see why it isn't translating the coll URL parameter into proper search criteria.

Alan

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alan
Darnell
Sent: Thursday, November 20, 2008 5:58 PM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] lib-search and collections

I'm having difficulty understanding the lib-search documentation on
how to incorporate collection limits into searches.

It looks like lib-search is looking for the parameter "coll" for
collection limits, but I can't figure out what the value should to
pair with coll.

For instance, say I have two collections defined as

http://scholarsportal.info/cora
http://scholarsportal.info/odesi

and I want to offer users the opportunity to limit a search to the
content of one or both of these collections.  I've set up a radio
button control group with the name "coll" but I can't figure out what
the values should be associated with the radio buttons.

The example config file has a collections section like this:

        <collection-sets>
                <collection-set id="publication">
        
<base-uri>http://www.foo.com/collections/pubs/</base-uri>
                </collection-set>
        </collection-sets>


So do I need something like this:

<collection-sets>
<collection-set id="repository">
        <base-uri>http://scholarsportal.info/</base-uri>
</collection>
</collection-sets>


And then should the coll parameter take a value something like

coll=repository:odesi

Or am I completely lost?

Thanks in advance.

Alan
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to