--
You received this message because you are subscribed to the Google Groups "DSpace REST" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-rest...@googlegroups.com.
Visit this group at http://groups.google.com/group/dspace-rest.
For more options, visit https://groups.google.com/groups/opt_out.
Exception: Caching is not supported by the ItemCountDAOSolr as it is not really needed, Solr is faster!
org.dspace.browse.ItemCountException: Caching is not supported by the ItemCountDAOSolr as it is not really needed, Solr is faster!
at org.dspace.browse.ItemCountDAOSolr.communityCount(ItemCountDAOSolr.java:82)
at org.dspace.browse.ItemCounter.count(ItemCounter.java:176)
at org.dspace.browse.ItemCounter.buildItemCounts(ItemCounter.java:90)
at org.dspace.browse.ItemCounter.main(ItemCounter.java:57)
Therefore I couldn't test the lucene search: http://localhost:8080/rest/items/search?q=Einstein
However, I was able to index discovery/solr, and so parameterizedSearch worked just fine. I'm tempted to say that this should support a wildcard search, i.e. q=Einstein Zurich Polytechnic 1910 Theory, and let the search engine handle the relevancy.. But, advanced search, where you can fill in each field author, date, title, publisher is great to have.
In my testing, something like: http://localhost:8080/rest/items/search?author=black&title=open%20source worked just fine.
But, I really like the context block.
<itemList>
Other code things.
The search help page looks very useful. I'm wondering if that will be a pain to write that message in Java. Is there any way for /items/search/help to point to something like webapps/items/searchHelp.html, or maybe just read in a resource file and output?
Moving Item.countAll to the Item class, as opposed to the SQL in the middle of REST.
Handles are strings, not integers. So instead of int prefix + "/" + int suffix, those have to be strings. example: 2374.OX/58458
Ultimately, I've made a Pull Request of these changes, and sent it back to you: https://github.com/AnjaLeBlanc/DSpace/pull/1
Hopefully, others will get a chance to review this and give feedback. Once everyone is satisfied, it can be made as a PR to DSpace/DSpace. I'm not sure what the DSpace4 release deadlines are, but I'm afraid that that code base might be "frozen".
I've been able to take a look at this, and I hope I can find a way to share my commits back to you.
So, I started with a clean /dspace directory, and a clean git clone of your repository. DSpace at this point has deprecated lucene so bad that I couldn't make a fresh index. I'm guessing, that we should migrate lucene to be just a implementing.search.class, as opposed to being hard-coded if your item search has a ?q query.
Not REST related, but, when trying to run /dspace/bin/dspace index-init (i.e. fresh lucene index).Exception: Caching is not supported by the ItemCountDAOSolr as it is not really needed, Solr is faster!
org.dspace.browse.ItemCountException: Caching is not supported by the ItemCountDAOSolr as it is not really needed, Solr is faster!
at org.dspace.browse.ItemCountDAOSolr.communityCount(ItemCountDAOSolr.java:82)
at org.dspace.browse.ItemCounter.count(ItemCounter.java:176)
at org.dspace.browse.ItemCounter.buildItemCounts(ItemCounter.java:90)
at org.dspace.browse.ItemCounter.main(ItemCounter.java:57)Therefore I couldn't test the lucene search: http://localhost:8080/rest/items/search?q=Einstein
However, I was able to index discovery/solr, and so parameterizedSearch worked just fine. I'm tempted to say that this should support a wildcard search, i.e. q=Einstein Zurich Polytechnic 1910 Theory, and let the search engine handle the relevancy.. But, advanced search, where you can fill in each field author, date, title, publisher is great to have.
In my testing, something like: http://localhost:8080/rest/items/search?author=black&title=open%20source worked just fine.
But, I really like the context block.
<itemList>
<context></context><limit>100</limit><offset>0</offset><query_date>2013-12-09T00:22:47</query_date><total_count>6</total_count><item>...
Other code things.
The search help page looks very useful. I'm wondering if that will be a pain to write that message in Java. Is there any way for /items/search/help to point to something like webapps/items/searchHelp.html, or maybe just read in a resource file and output?
Moving Item.countAll to the Item class, as opposed to the SQL in the middle of REST.
Handles are strings, not integers. So instead of int prefix + "/" + int suffix, those have to be strings. example: 2374.OX/58458
Ultimately, I've made a Pull Request of these changes, and sent it back to you: https://github.com/AnjaLeBlanc/DSpace/pull/1
Hopefully, others will get a chance to review this and give feedback. Once everyone is satisfied, it can be made as a PR to DSpace/DSpace. I'm not sure what the DSpace4 release deadlines are, but I'm afraid that that code base might be "frozen".
However, I was able to index discovery/solr, and so parameterizedSearch worked just fine. I'm tempted to say that this should support a wildcard search, i.e. q=Einstein Zurich Polytechnic 1910 Theory, and let the search engine handle the relevancy.. But, advanced search, where you can fill in each field author, date, title, publisher is great to have.
--