On Mon, Jan 10, 2011 at 7:44 AM, Mckeane Thomas <mckeane.tho...@gmail.com>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"


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

Reply via email to