Re: Boosting the score using edismax for a non empty and non indexed field.
Thanks Erik, I followed this approach. On Tue, Dec 9, 2014 at 4:21 AM, Erik Hatcher wrote: > Boosting will need to be done off an indexed field. But maybe rather than > indexing the url value, maybe index another new hasImage field as a boolean > true. No need to index the false values even. > >Erik > > >> On Dec 8, 2014, at 02:45, S.L wrote: >> >> Hi All, >> >> I have a situation where I need to boost the score of a query if a field >> (imageURL) in the given document is non empty , I am using edismax so I >> know that using bq parameter would solve the problem. However the field >> imageURL that I am trying to boost on is not indexed , meaning (stored = >> true and indexed = false), can I use the bq parameter for a non indexed >> field ? or should I be looking at re-indexing after changing the schema to >> make this an indexed field ? >> >> Also , my use case is such that I want the documents that have an imageURL >> to be boosted so that they appear before those documents that do not have >> the imageURL when sorted by score in a descending order, and this field in >> question i.e. imageURL is sometimes present and sometimes not, that is why >> I am looking at boosting the score of those documents that have the >> imageURL present. >> >> Thanks and any help and suggestionis much appreciated!
Re: Boosting the score using edismax for a non empty and non indexed field.
Boosting will need to be done off an indexed field. But maybe rather than indexing the url value, maybe index another new hasImage field as a boolean true. No need to index the false values even. Erik > On Dec 8, 2014, at 02:45, S.L wrote: > > Hi All, > > I have a situation where I need to boost the score of a query if a field > (imageURL) in the given document is non empty , I am using edismax so I > know that using bq parameter would solve the problem. However the field > imageURL that I am trying to boost on is not indexed , meaning (stored = > true and indexed = false), can I use the bq parameter for a non indexed > field ? or should I be looking at re-indexing after changing the schema to > make this an indexed field ? > > Also , my use case is such that I want the documents that have an imageURL > to be boosted so that they appear before those documents that do not have > the imageURL when sorted by score in a descending order, and this field in > question i.e. imageURL is sometimes present and sometimes not, that is why > I am looking at boosting the score of those documents that have the > imageURL present. > > Thanks and any help and suggestionis much appreciated!
Re: Boosting the score using edismax for a non empty and non indexed field.
Anyone ? On Mon, Dec 8, 2014 at 2:45 AM, S.L wrote: > Hi All, > > I have a situation where I need to boost the score of a query if a field > (imageURL) in the given document is non empty , I am using edismax so I > know that using bq parameter would solve the problem. However the field > imageURL that I am trying to boost on is not indexed , meaning (stored = > true and indexed = false), can I use the bq parameter for a non indexed > field ? or should I be looking at re-indexing after changing the schema to > make this an indexed field ? > > Also , my use case is such that I want the documents that have an imageURL > to be boosted so that they appear before those documents that do not have > the imageURL when sorted by score in a descending order, and this field in > question i.e. imageURL is sometimes present and sometimes not, that is why > I am looking at boosting the score of those documents that have the > imageURL present. > > Thanks and any help and suggestionis much appreciated! > > >
Boosting the score using edismax for a non empty and non indexed field.
Hi All, I have a situation where I need to boost the score of a query if a field (imageURL) in the given document is non empty , I am using edismax so I know that using bq parameter would solve the problem. However the field imageURL that I am trying to boost on is not indexed , meaning (stored = true and indexed = false), can I use the bq parameter for a non indexed field ? or should I be looking at re-indexing after changing the schema to make this an indexed field ? Also , my use case is such that I want the documents that have an imageURL to be boosted so that they appear before those documents that do not have the imageURL when sorted by score in a descending order, and this field in question i.e. imageURL is sometimes present and sometimes not, that is why I am looking at boosting the score of those documents that have the imageURL present. Thanks and any help and suggestionis much appreciated!