Hi Alex,

It's okay after I added in a new field "s_title" in the schema and
re-indexed.

   <field name="s_title" type="string" indexed="true" stored="false"
multiValued="false"/>
   <copyField source="title" dest="s_title"/>

But how can I ignore the articles ("A", "An", "The") in the sorting. As you
can see from the below example :

http://localhost:8983/solr/bibs/select?q=singapore&fl=id,title&sort=s_title+asc&wt=xml&start=0&rows=20&indent=true

<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
<lst name="params">
<str name="q">singapore</str>
<str name="indent">true</str>
<str name="fl">id,title</str>
<str name="start">0</str>
<str name="sort">s_title asc</str>
<str name="rows">20</str>
<str name="wt">xml</str>
</lst>
</lst>
<result name="response" numFound="18" start="0">
<doc>
<str name="id">36</str>
<str name="title">
5th SEACEN-Toronto Centre Leadership Seminar for Senior Management of
Central Banks on Financial System Oversight, 16-21 Oct 2005, Singapore
</str>
</doc>
<doc>
<str name="id">70</str>
<str name="title">
Anti-money laundering & counter-terrorism financing / Commercial Affairs
Dept
</str>
</doc>
<doc>
<str name="id">15</str>
<str name="title">
China's anti-secession law : a legal perspective / Zou, Keyuan
</str>
</doc>
<doc>
<str name="id">12</str>
<str name="title">
China's currency peg : firm in the eye of the storm / Calla Wiemer
</str>
</doc>
<doc>
<str name="id">22</str>
<str name="title">
China's politics in 2004 : dawn of the Hu Jintao era / Zheng Yongnian & Lye
Liang Fook
</str>
</doc>
<doc>
<str name="id">92</str>
<str name="title">
Goods and Services Tax Act [2005 ed.] (Chapter 117A)
</str>
</doc>
<doc>
<str name="id">13</str>
<str name="title">
Governing capacity in China : creating a contingent of qualified personnel
/ Kjeld Erik Brodsgaard
</str>
</doc>
<doc>
<str name="id">21</str>
<str name="title">Health care marketization in urban China / Gu Xin</str>
</doc>
<doc>
<str name="id">85</str>
<str name="title">Lianhe Zaobao, Sunday</str>
</doc>
<doc>
<str name="id">84</str>
<str name="title">
Singapore : vision of a global city / Jones Lang LaSalle
</str>
</doc>
<doc>
<str name="id">7</str>
<str name="title">
Singapore real estate investment trusts : leveraged value / Tony Darwell
</str>
</doc>
<doc>
<str name="id">96</str>
<str name="title">
Singapore's success : engineering economic growth / Henri Ghesquiere
</str>
</doc>
<doc>
<str name="id">23</str>
<str name="title">
The Chen-Soong meeting : the beginning of inter-party rapprochement in
Taiwan? / Raymond R. Wu
</str>
</doc>
<doc>
<str name="id">17</str>
<str name="title">
The Haw Par saga in the 1970s / project sponsor, Low Kwok Mun; team leader,
Sandy Ho; team members, Audrey Low ... et al
</str>
</doc>
<doc>
<str name="id">78</str>
<str name="title">The New paper on Sunday</str>
</doc>
<doc>
<str name="id">95</str>
<str name="title">
The little Red Dot : reflections by Singapore's diplomats / editors, Tommy
Koh, Chang Li Lin
</str>
</doc>
<doc>
<str name="id">52</str>
<str name="title">
[Press releases and articles on policy changes affecting the Singapore
property market] / compiled by the Information Resource Centre, Monetary
Authority of Singapore
</str>
</doc>
<doc>
<str name="id">dataq</str>
<str name="title">
Simon is testing Solr - This one is in English. Color of the Wind. 我是中国人 ,
БOΛbШ OЙ PYCCKO-KИTAЙCKИЙ CΛOBAPb , Français-Chinois
</str>
</doc>
</result>
</response>

Reply via email to