On May 26, 2009, at 10:13 AM, Jörg Agatz wrote:
ok, now i understand.. the phraser fram solrtis, or the phraser, that
solrtis is using... do not work with: (fieldname:term)
To be precise... "parser".
but how i can change the default search field from solrtis?
and how can i search in a special field?
Let's take Solritas out of the picture here for the sake of query
parsing. The /itas mapping is really just a convenience to get a cute
URL /solr/itas - feel free to use whatever request handler mapping you
want.
To change the default search field (meaning the one Lucene query
parser uses when no field selector is specified), change
<defaultSearchField> in schema.xml.
Change /itas to use "lucene" (or remove the defType parameter
altogether)
and you'll have the same syntax available to both the admin search
box and
the Solritas UI.
whith way is the best? and easyest way for me?
Just remove defType=dismax from the /itas mapping in solrconfig.xml
(and you can remove qf then too, since only dismax uses that).
Erik