You're mixing two different parsers I think. If you're using edismax (either specify defType=edismax on your query or set it up as the default for, say, the "/select" handler in solrcofnig.xml). The "qf" parameter only is relevant if you _are_ using edismax. If you wan to use edismax your query could look something like q=dieren&defType=edismax&qf=qtitle_search_global title_exactmatch^1000 description_search_global description_exactmatch^100
On the other hand if you don't want to use edismax your query would have to look something like: q=qtitle_search_global:dieren title_exactmatch:dieren^1000 description_search_global:dieren description_exactmatch:dieren^100 This is guessing a bit, but If you add &debug=query to your URL, you'll see the parsed results of the query which can be very useful in figuring out exactly what Solr thinks the query is.. Best, Erick On Sat, Mar 10, 2018 at 2:06 PM, PeterKerk <petervdk...@hotmail.com> wrote: > Since Google onsite search will be end of life April 1 2018, I'm trying to > setup my own onsite search engine that indexes my site's content and makes > it searchable. > > My data config successfully loads data from my database (products, > companies, blogs) into the fields. > > I then try to search in both the title and the description fields with > weights. Now for example when users search on "dieren" (this means "animals" > in Dutch): > > &q=(title_search_global:(dieren) OR > description_search_global:(dieren))&qf=title_search_global+title_exactmatch^1000+description_search_global+description_exactmatch^100 > > I get results with "dieren", "huisdieren", but I also get undesired results > with "manieren" and "versieren". > > What I want is to find text using the following logic (all case > insensitive): > > > Exact match "dieren" boost result with 1000 > Partial match "huisdieren" boost result with 500 > Stem match "dier" boost result with 100 > Stem partial match "huisdier" boost result with 70 > Other partial matches "die" boost result with 10 > > My current schema.xml is here: http://www.telefonievergelijken.nl/schema.xml > I tried the solr admin tool for tokenization, but I can't figure out how to > get to the above logic. > I also Googled for an example Solr schema.xml configuration for building > your own search engines and I'm really surprised there's nothing out there. > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html