lucene.net - Lucene sorting in (keyword, alphabetical) order -
how sort search results in following order (query phrase, alphabetical). give example, if have documents in index, each 1 field (foodname). food names of documents are
- fat chicken
- chicken breast
- chicken lasagna
if query search word "chicken", results in following order
- chicken breast
- chicken lasagna
- fat chicken
please note boosting factor these documents same in indexing stage. appreciated
thanks -venu
i'll give high level overview of i'd do. consider using food ingredients / recipes types dictionary & assigning higher boosting words in index matches items in food dictionary. , perhaps go further, assign weights keywords in food dictionary. here's example of food ingredients dictionary.
Comments
Post a Comment