[jira] [Updated] (NUTCH-1611) Elastic Search Indexer Creates field in elastic search "boost" as a string value, so cannot be used in custom boost queries

2013-07-15 Thread Markus Jelsma (JIRA)

 [ 
https://issues.apache.org/jira/browse/NUTCH-1611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Jelsma updated NUTCH-1611:
-

Fix Version/s: 2.2
   1.8

> Elastic Search Indexer Creates field in elastic search "boost" as a string 
> value, so cannot be used in custom boost queries
> ---
>
> Key: NUTCH-1611
> URL: https://issues.apache.org/jira/browse/NUTCH-1611
> Project: Nutch
>  Issue Type: Bug
>  Components: indexer
>Affects Versions: 2.2.1
> Environment: All
>Reporter: Nicholas Waltham
> Fix For: 2.2, 1.8
>
>
> Ordinarily, one can use a boost field in a custom_score query in elastic 
> search to affect the ranking, nutch create such a field. However it is store 
> in elastic search as a string, so cannot be used. Attempt to use the boost 
> field in a query therefore creates the following error:
>  PropertyAccessException[[Error: could not access: floatValue; in class: 
> org.elasticsearch.index.field.data.strings.StringDocFieldData]\n[Near : {... 
> _score + (1 * doc.boost.floatValue / 100) }]   
> example test query:
> {
> "query" : {
>   "custom_score" : {  
> "query" : {
>   "query_string" : {
>  "query" : "something"
>   }},
>   "script" : "_score + (1 * doc.boost.doubleValue / 100)"
>   }
>}
> }   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (NUTCH-1611) Elastic Search Indexer Creates field in elastic search "boost" as a string value, so cannot be used in custom boost queries

2013-07-30 Thread Lewis John McGibbney (JIRA)

 [ 
https://issues.apache.org/jira/browse/NUTCH-1611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lewis John McGibbney updated NUTCH-1611:


Fix Version/s: (was: 2.2)
   2.3

> Elastic Search Indexer Creates field in elastic search "boost" as a string 
> value, so cannot be used in custom boost queries
> ---
>
> Key: NUTCH-1611
> URL: https://issues.apache.org/jira/browse/NUTCH-1611
> Project: Nutch
>  Issue Type: Bug
>  Components: indexer
>Affects Versions: 2.2.1
> Environment: All
>Reporter: Nicholas Waltham
> Fix For: 2.3, 1.8
>
>
> Ordinarily, one can use a boost field in a custom_score query in elastic 
> search to affect the ranking, nutch create such a field. However it is store 
> in elastic search as a string, so cannot be used. Attempt to use the boost 
> field in a query therefore creates the following error:
>  PropertyAccessException[[Error: could not access: floatValue; in class: 
> org.elasticsearch.index.field.data.strings.StringDocFieldData]\n[Near : {... 
> _score + (1 * doc.boost.floatValue / 100) }]   
> example test query:
> {
> "query" : {
>   "custom_score" : {  
> "query" : {
>   "query_string" : {
>  "query" : "something"
>   }},
>   "script" : "_score + (1 * doc.boost.doubleValue / 100)"
>   }
>}
> }   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (NUTCH-1611) Elastic Search Indexer Creates field in elastic search "boost" as a string value, so cannot be used in custom boost queries

2016-05-26 Thread Joseph Naegele (JIRA)

 [ 
https://issues.apache.org/jira/browse/NUTCH-1611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joseph Naegele updated NUTCH-1611:
--
Attachment: NUTCH-1611-1.x.patch

This is an issue in 1.x. I've attached a patch for 1.x for which all tests pass.

> Elastic Search Indexer Creates field in elastic search "boost" as a string 
> value, so cannot be used in custom boost queries
> ---
>
> Key: NUTCH-1611
> URL: https://issues.apache.org/jira/browse/NUTCH-1611
> Project: Nutch
>  Issue Type: Bug
>  Components: indexer
>Affects Versions: 2.2.1
> Environment: All
>Reporter: Nicholas Waltham
> Attachments: NUTCH-1611-1.x.patch
>
>
> Ordinarily, one can use a boost field in a custom_score query in elastic 
> search to affect the ranking, nutch create such a field. However it is store 
> in elastic search as a string, so cannot be used. Attempt to use the boost 
> field in a query therefore creates the following error:
>  PropertyAccessException[[Error: could not access: floatValue; in class: 
> org.elasticsearch.index.field.data.strings.StringDocFieldData]\n[Near : {... 
> _score + (1 * doc.boost.floatValue / 100) }]   
> example test query:
> {
> "query" : {
>   "custom_score" : {  
> "query" : {
>   "query_string" : {
>  "query" : "something"
>   }},
>   "script" : "_score + (1 * doc.boost.doubleValue / 100)"
>   }
>}
> }   



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (NUTCH-1611) Elastic Search Indexer Creates field in elastic search "boost" as a string value, so cannot be used in custom boost queries

2022-06-21 Thread Sebastian Nagel (Jira)


 [ 
https://issues.apache.org/jira/browse/NUTCH-1611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebastian Nagel updated NUTCH-1611:
---
Affects Version/s: 1.16

> Elastic Search Indexer Creates field in elastic search "boost" as a string 
> value, so cannot be used in custom boost queries
> ---
>
> Key: NUTCH-1611
> URL: https://issues.apache.org/jira/browse/NUTCH-1611
> Project: Nutch
>  Issue Type: Bug
>  Components: indexer
>Affects Versions: 2.2.1, 1.16
> Environment: All
>Reporter: Nicholas Waltham
>Priority: Major
> Attachments: NUTCH-1611-1.x.patch
>
>
> Ordinarily, one can use a boost field in a custom_score query in elastic 
> search to affect the ranking, nutch create such a field. However it is store 
> in elastic search as a string, so cannot be used. Attempt to use the boost 
> field in a query therefore creates the following error:
>  PropertyAccessException[[Error: could not access: floatValue; in class: 
> org.elasticsearch.index.field.data.strings.StringDocFieldData]\n[Near : {... 
> _score + (1 * doc.boost.floatValue / 100) }]   
> example test query:
> {
> "query" : {
>   "custom_score" : {  
> "query" : {
>   "query_string" : {
>  "query" : "something"
>   }},
>   "script" : "_score + (1 * doc.boost.doubleValue / 100)"
>   }
>}
> }   



--
This message was sent by Atlassian Jira
(v8.20.7#820007)