Ok, thanks. it works now for title and description fields. :)

But now I also need it for the city. And I cant get that to work, even
though im doing the exact same (or so I think).

I now have the code below for the city field. 
(Im defining city field twice in my data-config and schema.xml but thats
because I want the city field to be indexed both as string (whole value) and
as text. Though thats not the point now.)

data-config.xml
<field name="city" column="CITY" />
<field name="city_search" column="CITY" />


schema.xml
<field name="city" type="string" indexed="true" stored="true"/>
<field name="city_search" type="text_ws" indexed="true" stored="true"/>  
<!-- tried type "text", "text_ws" and "string" -->
<field name="citytext_search" type="text" indexed="true" stored="true"/>
<copyField source="city_search" dest="citytext_search"/>

URL:
http://localhost:8983/solr/db/select/?q=amsterdam&defType=dismax&qf=citytext_search^10.0

The value in the db for the city field is "amsterdam"

but no results are found. and yes: restarted server, reloaded data-config,
did a full import.
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/full-text-search-in-multiple-fields-tp1888328p1900535.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to