On Mon, Jan 27, 2014 at 9:30 AM, William Bell <billnb...@gmail.com> wrote:
> OK, > > In order to do boosting, we often will create a dynamic field in SOLR. For > example: > > A Professional hire out for work, I want to boost those who do > "woodworking". > > George Smith - builds chairs, and builds desks. He builds the most desks in > the country (350 a year). And his closest competitor does 200 a year. > > id (integer) = 1 > name (string) =George Smith > work multiValued field = chairs, desks > num_desk (dynamic field num*) = 500 > Hello William, What if you model it something like { id: 1 name : "George Smith", work: chairs num: 500 }, { id: 2 name : "George Smith", work: desks num: 300 } > > Then I would do something like: > q=num_desk^5.0 > > Is there a way to do this without a dynamic field? > > I thought about a field: desk|500 (use bar delimiter). But couldn't see how > to have the value indexed to easily to a boost for those who do the most. > > If you think of all the type of work, this could be 50,000 dynamic fields. > Probably a performance hog. > > > > > > Dr. Smith > Angioplasty > Performs 70 of these a year > > > > -- > Bill Bell > billnb...@gmail.com > cell 720-256-8076 > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>