With helix84's help, I turned on discovery, (
https://wiki.duraspace.org/display/DSDOC18/Discovery#Discovery-EnablingDiscovery),
ran

/bin/dspace update-discovery-index, and now am able to query solr like
crazy.



On Mon, Nov 26, 2012 at 2:08 PM, helix84 <[email protected]> wrote:

> On Mon, Nov 26, 2012 at 7:40 PM, Mark Ehle <[email protected]> wrote:
> > Ok, I lied - one more question. If I want to query solr for, say, like
> the
> > term "battle creek", what would be my URL? The dspace.log file shows my
> > queries as I post them using dspace, but I don't know how to translate
> them
> > to a web query. when I put in something like,
> >
> > http://127.0.0.1:8080/solr/search/select?q=
> >
> > I get proper XML back so I know I'm close.
>
> Right, I guess you'd expect I'd have mentioned that in the "Solr
> queries" [1] chapter :) Well, go ahead and put in what you'd like to
> have there. Here's some inspiration: [1] [2] [3]
>
> It'a actually very easy. You can put in anything that you would put
> into the DSpace search box. Only remember to URL-encode it [4].
>
> q=battle+creek
>
> If you want to search in titles only, use:
>
> q=title:battle+creek
>
> You can find the fields defined in DSpace Solr search core in its
> admin interface. And you can also define mappings for your own
> metadata fields to Solr search core fields.
>
> [1] http://www.solrtutorial.com/solr-query-syntax.html
> [2] http://wiki.apache.org/solr/SolrQuerySyntax
> [3] http://wiki.apache.org/solr/CommonQueryParameters
> [4] http://en.wikipedia.org/wiki/Percent-encoding
>
>
> Regards,
> ~~helix84
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to