Re: [Dspace-tech] Range query search in dspace 1.7.0
On Mon, Jan 10, 2011 at 7:44 AM, Mckeane Thomas mckeane.tho...@gmail.comwrote: Hello, I have recently installed dspace 1.7.0 But I am unable to perform range query searches. I have turned on Discovery as outlined in the documentation. For example the search var:[10 TO 20] with keyword var of type sint indexed within the range 10 TO 20 produced no results.But when I do a search for the keyword var the values returned are those indexed with keyword var What if you explicitly define the dc.format.extent field as an sint without copying? What about using integer instead of sint... also try optimizing the index... see the following thread which sounds similar. http://www.lucidimagination.com/blog/2009/02/09/sorting-faceting-and-schema-design-in-solr/ !--*fields i added-- field name = var type = sint indexed =true stored =true mulitvalued =true omitNorms =true / copyField source =dc.format.extent dest = var/ field name=dc.format type=sint indexed=true stored=true multiValued=true/ dynamicField name=dc.format.* type=sint indexed=true stored=true multiValued=true/ !--*-- nothing out of the ordinary there... and added to : /dspace-1.7.0-release/dspace-instance/config dspace.cfg document the field for indexing: search.index.13 = var:dc.format.extent Solr doesn't use these fields, it indexes all metadata fields verbatim into the index. However, doing the same range searches in dspace 1.6.2 from solr admin search interface returns the expected results. Any help would be appreciated. If anything above doesn't work. Then I wonder if this is a solr bug, what if you tried downloading the out of the box Apache solr version and tested if a similar case worked there? If so, we may need to explore this with the Apache Solr community more directly. Mark -- Mark R. Diggory @mire - www.atmire.com 2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010 Technologielaan 9 - 3001 Heverlee - Belgium -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Range query search in dspace 1.7.0
Does it happen to work from either the discovery search or the solr admin interface if you leave the TO out of the query? var:[10 20] On Jan 10, 2011, at 10:44 AM, Mckeane Thomas wrote: Hello, I have recently installed dspace 1.7.0 But I am unable to perform range query searches. I have turned on Discovery as outlined in the documentation. For example the search var:[10 TO 20] with keyword var of type sint indexed within the range 10 TO 20 produced no results.But when I do a search for the keyword var the values returned are those indexed with keyword var I have edited the /dspace-1.7.0-release/dspace-instance/solr/statistics/conf/schema.xml document and added the fields: !--*fields i added-- field name = var type = sint indexed =true stored =true mulitvalued =true omitNorms =true / copyField source =dc.format.extent dest = var/ field name=dc.format type=sint indexed=true stored=true multiValued=true/ dynamicField name=dc.format.* type=sint indexed=true stored=true multiValued=true/ !--*-- and added to : /dspace-1.7.0-release/dspace-instance/config dspace.cfg document the field for indexing: search.index.13 = var:dc.format.extent Also from Solr admin search interface I performed the following search: var:[10 TO 20] which also produced no results. Also if I perform a search for the keyword var I get the error below. HTTP Status 500 - String index out of range: 2 java.lang.StringIndexOutOfBoundsException: String index out of range: 2 at java.lang.String.charAt(String.java:687) at org.apache.solr.util.NumberUtils.SortableStr2int(NumberUtils.java:129) at org.apache.solr.schema.SortableIntField.write(SortableIntField.java:72) at org.apache.solr.schema.SchemaField.write(SchemaField.java:108) at org.apache.solr.request.XMLWriter.writeDoc(XMLWriter.java:311) at org.apache.solr.request.XMLWriter$3.writeDocs(XMLWriter.java:483) at org.apache.solr.request.XMLWriter.writeDocuments(XMLWriter.java:420) at org.apache.solr.request.XMLWriter.writeDocList(XMLWriter.java:457) at org.apache.solr.request.XMLWriter.writeVal(XMLWriter.java:520) at org.apache.solr.request.XMLWriter.writeResponse(XMLWriter.java:130) at org.apache.solr.request.XMLResponseWriter.write(XMLResponseWriter.java:34) at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:325) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) However, doing the same range searches in dspace 1.6.2 from solr admin search interface returns the expected results. Any help would be appreciated. -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Range query search in dspace 1.7.0
Hello, I have recently installed dspace 1.7.0 But I am unable to perform range query searches. I have turned on Discovery as outlined in the documentation. For example the search var:[10 TO 20] with keyword var of type sint indexed within the range 10 TO 20 produced no results.But when I do a search for the keyword var the values returned are those indexed with keyword var I have edited the /dspace-1.7.0-release/dspace-instance/solr/statistics/conf/schema.xml document and added the fields: !--*fields i added-- field name = var type = sint indexed =true stored =true mulitvalued =true omitNorms =true / copyField source =dc.format.extent dest = var/ field name=dc.format type=sint indexed=true stored=true multiValued=true/ dynamicField name=dc.format.* type=sint indexed=true stored=true multiValued=true/ !--*-- and added to : /dspace-1.7.0-release/dspace-instance/config dspace.cfg document the field for indexing: search.index.13 = var:dc.format.extent Also from Solr admin search interface I performed the following search: var:[10 TO 20] which also produced no results. Also if I perform a search for the keyword var I get the error below. HTTP Status 500 - String index out of range: 2 java.lang.StringIndexOutOfBoundsException: String index out of range: 2 at java.lang.String.charAt(String.java:687) at org.apache.solr.util.NumberUtils.SortableStr2int(NumberUtils.java:129) at org.apache.solr.schema.SortableIntField.write(SortableIntField.java:72) at org.apache.solr.schema.SchemaField.write(SchemaField.java:108) at org.apache.solr.request.XMLWriter.writeDoc(XMLWriter.java:311) at org.apache.solr.request.XMLWriter$3.writeDocs(XMLWriter.java:483) at org.apache.solr.request.XMLWriter.writeDocuments(XMLWriter.java:420) at org.apache.solr.request.XMLWriter.writeDocList(XMLWriter.java:457) at org.apache.solr.request.XMLWriter.writeVal(XMLWriter.java:520) at org.apache.solr.request.XMLWriter.writeResponse(XMLWriter.java:130) at org.apache.solr.request.XMLResponseWriter.write(XMLResponseWriter.java:34) at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:325) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) However, doing the same range searches in dspace 1.6.2 from solr admin search interface returns the expected results. Any help would be appreciated. -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Range query
Yes, in theory (at least for 1.5+ - haven't checked earlier) For example, a query like author:[aa TO ab] Will find all items with authors that start with 'aa' (it will also find any authors that exactly match 'ab', but not 'aba', etc.) G Jochen Lienhard wrote: Hi, does DSpace support range queries? like author{Aa TO Am} Greetings Jochen This e-mail is confidential and should not be used by anyone who is not the original intended recipient. BioMed Central Limited does not accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of BioMed Central Limited. No contracts may be concluded on behalf of BioMed Central Limited by means of e-mail communication. BioMed Central Limited Registered in England and Wales with registered number 3680030 Registered Office Middlesex House, 34-42 Cleveland Street, London W1T 4LB This email has been scanned by Postini. For more information please visit http://www.postini.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Range query
Hi, does DSpace support range queries? like author{Aa TO Am} Greetings Jochen -- Dr. rer. nat. Jochen Lienhard UB Universität Freiburg Dezernat EDV Tel: (0761) 203-3908 Email: [EMAIL PROTECTED] - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech