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

Reply via email to