Re: Different scores for exact and non-exact matching

2013-06-18 Thread Otis Gospodnetic
Hi, I think you are after indexing tokens with begin/end markers. e.g. "This is a sample string" becomes: _This$ _is$ _a$ _sample$ _string$ + (edge) ngrams of the above tokens Then a query for /This string/ could become: _This$^100 _string$^100 this string (or something along those lines) So th

Re: Different scores for exact and non-exact matching

2013-06-17 Thread Upayavira
q="This is a sample string"^10 (This is a sample string)^5 fuzzy:(This is a sample string) You'd have to define the 'fuzzy' field as an EdgeNGram field, such that 'sample' gets indexed as: s sa sam samp sampl sample Obviously, that'll take more space in your index, but I believe it would g

Different scores for exact and non-exact matching

2013-06-17 Thread Daniel Mosesson
What I am looking to do is take field that contains a string like (called name for example): "This is a sample string" and then query by that field so that a search for "This" gets x points (exact match), "sam" gets y points (partial match). I attempted to do this via the sort and query parame