Re: [Dspace-tech] Range query search in dspace 1.7.0

2011-03-04 Thread Mark Diggory
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

2011-01-12 Thread Keith Gilbertson
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

2011-01-10 Thread Mckeane Thomas
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