lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harshvardhan Ojha <Harshvardhan.O...@makemytrip.com>
Subject Problem with sorting solr docs
Date Tue, 03 Jul 2012 11:48:47 GMT
Hi,

I have 260 docs which I want to sort on a single field latlng.
<doc>
<str name="id">1</str>
<str name="name">Amphoe Khanom</str>
<str name="latlng">1.0,1.0</str>
</doc>

My query is :
http://localhost:8080/solr/select?q=*:*&sort=name +asc

This query sorts all documents except those which doesn't have latlng, and I can't keep any
default value for this field.
My question is how can I sort all docs on latlng?

Regards
Harshvardhan Ojha  | Software Developer - Technology Development

    |  MakeMyTrip.com, 243 SP Infocity, Udyog Vihar Phase 1, Gurgaon, Haryana - 122 016, India


[Description: http://www.mailmktg.makemytrip.com/signature/images/bulb.gif]What's new?: Inspire
- Discover an inspiring new way to plan and book travel online<http://inspire.makemytrip.com/inspire/>.

[Description: http://www.mailmktg.makemytrip.com/signature/images/MMT-signature-footer-V4.gif]<http://www.makemytrip.com/>

[Description: http://www.mailmktg.makemytrip.com/signature/images/map-icon.gif]<http://www.makemytrip.com/support/gurgaon-travel-agent-office.php>
Office Map

[Description: http://www.mailmktg.makemytrip.com/signature/images/facebook-icon.gif]<http://www.facebook.com/pages/MakeMyTrip-Deals/120740541030?ref=search&sid=100000077980239.1422657277..1>
Facebook

[Description: http://www.mailmktg.makemytrip.com/signature/images/twitter-icon.gif]<http://twitter.com/makemytripdeals>
Twitter




Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message