Re: Get values in custom scoring during document retrieval

2017-01-17 Thread sidhant92
Okay say i need the distance for filtering purposes. And then again i need the distance for scoring purposes. I also need the distance for display purposes and i display some 100 results. So are you sayings its still okay to compute the distance twice here once for scoring and once for display rath

Get values in custom scoring during document retrieval

2017-01-13 Thread sidhant92
I am using custom score provider for scoring lucene documents manually. I am doing many calculations in custom score provider to calculate the score. For example on of them is distance. So now once the scoring is done i would like to know that distance as well. Instead of computing it again cant i

Filter By Distance and get the Distance

2017-01-13 Thread sidhant92
In Lucene i am using custom scoring by overriding the custom score provider. Now what i want to achieve is that to my regular boolean query i want to add a distance filter which gives only those documents which are within a certain distance from the user lat long. First, how do put the distance fil

Lucene Store Associated Data with a field

2016-12-26 Thread sidhant92
up vote 0 down vote favorite Suppose i have a document which stores details about a person. The document would have various fields such as name, address and services provided by the user. Now here service can have multiple string values. Now i also want to store some metadata associated with each s

Lucene Store Associated Data with a field

2016-12-26 Thread sidhant92
Suppose i have a document which stores details about a person. The document would have various fields such as name, address and services provided by the user. Now here service can have multiple string values. Now i also want to store some metadata associated with each service such as the id of serv

Lucene Taxonomy Faceting

2016-11-02 Thread sidhant92
How Can i achieve the following: Suppose i have the following set of documents { "id": "1" "type": "abc" }, { "id": "2" "type": "abc" }, { "id": "2" "type": "abc" }, { "id": "3" "type": "abc" } Using a taxonomy index in lucene in facets i can get the count during search that gives