Hi Thomas,

Have you tried running the "update-discovery-index" command with the
*"-f"*option like shown below:

./dspace update-discovery-index -f
>

By adding the *"-f"* you are forcing discovery to reindex all your items.

Hope this helps,

Kevin Van de Velde
@mire - www.atmire.com
533 2nd Street - Encinitas, CA 92024 - USA
Technologielaan 9 - 3001 Heverlee - Belgium


http://www.atmire.com - Institutional Repository Solutions
http://www.togather.eu - Before getting together, get Tog@ther


On 2 February 2011 15:42, Mckeane Thomas <[email protected]> wrote:

> Hello,
>    I had upgraded from dspace 1.6.2 to dspace 1.7.0 and found that if an
> item had a metadata field with an associated integer value for example:
> sc.coordinate.northing have values of say 500, 600, 1000, 400. The metadata
> field "sc.coordinate.northing" was not added to [dspace]/solr/search/conf
> schema.xml file before, but have the values mentioned previously. After I
> added the field to the schema and ran "update-discovery-index" and perform
> range search on the values above no results are returned. Also if I added
> the metadata sc.coordinate.northing with a value to an item besides those
> mentioned above example a value of 560. and performed a range query on the
> newly added item with value 550 is returned. Those that were there before
> aren't returned even though they are within range searched.
>
>
> here's the field I added to schema.xml file:
> <field name="northing" type="int" indexed="true" stored="true"
> multiValued="true" omitNorms="true" />
>  <field name="sc.coordinate.northing" type="int" indexed="true"
> stored="true" multiValued="true"/>
>  <copyField source="sc.coordinate.northing" dest="northing"/>
>
>
> and query example:
>
> "northing:[* TO *]"
>
> Your query "northing:[* TO *]" produced 1 result(s).
> which is the item that I added the metadata value to after I I added the
> field above to the schema.xml file and ran "update-discovery-index"
> What I realize is that I would have to delete and re-add the metadata field
> to the items.
>
> Performing a search from solr admin interface on an Item that was there
> before I added the field to the schema.xml file example: "500"
>  The value is returned, but with an attribute below:
> <arr name="sc.coordinate.northing">
> <str>ERROR:SCHEMA-INDEX-MISMATCH,stringValue=500</str>
> </arr>
>
> Searching for the value previously added or using the search term
> "northing:[* TO *]"
> the results returned have the attribute:
> <arr name="sc.coordinate.northing">
> <long>560</long>
> </arr>
>
> Is there a way to update the index so the fields are indexed properly?
> Any help would be greatly appreciated.
>
> Best Regards,
> Mckeane Thomas.
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to