[jira] Updated: (SOLR-1703) Sorting by function problems on multicore (more than one core)

2010-04-15 Thread Yonik Seeley (JIRA)

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

Yonik Seeley updated SOLR-1703:
---

Fix Version/s: 3.1

 Sorting by function problems on multicore (more than one core)
 --

 Key: SOLR-1703
 URL: https://issues.apache.org/jira/browse/SOLR-1703
 Project: Solr
  Issue Type: Bug
  Components: multicore, search
Affects Versions: 1.5
 Environment: Linux (debian, ubuntu), 64bits
Reporter: Rafał Kuć
 Fix For: 3.1


 When using sort by function (for example dist function) with multicore with 
 more than one core (on multicore with one core, ie. the example deployment 
 the problem doesn`t exist) there is a problem with not using the right 
 schema. I think there is a problem with this portion of code:
 QueryParsing.java:
 {code}
 public static FunctionQuery parseFunction(String func, IndexSchema schema) 
 throws ParseException {
 SolrCore core = SolrCore.getSolrCore();
 return (FunctionQuery) (QParser.getParser(func, func, new 
 LocalSolrQueryRequest(core, new HashMap())).parse());
 // return new FunctionQuery(parseValSource(new StrParser(func), schema));
 }
 {code}
 Code above uses deprecated method to get the core sometimes getting the wrong 
 core effecting in impossibility to find the right fields in index. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SOLR-1703) Sorting by function problems on multicore (more than one core)

2010-03-11 Thread Koji Sekiguchi (JIRA)

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

Koji Sekiguchi updated SOLR-1703:
-

Description: 
When using sort by function (for example dist function) with multicore with 
more than one core (on multicore with one core, ie. the example deployment the 
problem doesn`t exist) there is a problem with not using the right schema. I 
think there is a problem with this portion of code:

QueryParsing.java:

{code}
public static FunctionQuery parseFunction(String func, IndexSchema schema) 
throws ParseException {
SolrCore core = SolrCore.getSolrCore();
return (FunctionQuery) (QParser.getParser(func, func, new 
LocalSolrQueryRequest(core, new HashMap())).parse());
// return new FunctionQuery(parseValSource(new StrParser(func), schema));
}
{code}

Code above uses deprecated method to get the core sometimes getting the wrong 
core effecting in impossibility to find the right fields in index. 

  was:
When using sort by function (for example dist function) with multicore with 
more than one core (on multicore with one core, ie. the example deployment the 
problem doesn`t exist) there is a problem with not using the right schema. I 
think there is a problem with this portion of code:

QueryParsing.java:

public static FunctionQuery parseFunction(String func, IndexSchema schema) 
throws ParseException {
SolrCore core = SolrCore.getSolrCore();
return (FunctionQuery) (QParser.getParser(func, func, new 
LocalSolrQueryRequest(core, new HashMap())).parse());
// return new FunctionQuery(parseValSource(new StrParser(func), schema));
}

Code above uses deprecated method to get the core sometimes getting the wrong 
core effecting in impossibility to find the right fields in index. 


 Sorting by function problems on multicore (more than one core)
 --

 Key: SOLR-1703
 URL: https://issues.apache.org/jira/browse/SOLR-1703
 Project: Solr
  Issue Type: Bug
  Components: multicore, search
Affects Versions: 1.5
 Environment: Linux (debian, ubuntu), 64bits
Reporter: Rafał Kuć

 When using sort by function (for example dist function) with multicore with 
 more than one core (on multicore with one core, ie. the example deployment 
 the problem doesn`t exist) there is a problem with not using the right 
 schema. I think there is a problem with this portion of code:
 QueryParsing.java:
 {code}
 public static FunctionQuery parseFunction(String func, IndexSchema schema) 
 throws ParseException {
 SolrCore core = SolrCore.getSolrCore();
 return (FunctionQuery) (QParser.getParser(func, func, new 
 LocalSolrQueryRequest(core, new HashMap())).parse());
 // return new FunctionQuery(parseValSource(new StrParser(func), schema));
 }
 {code}
 Code above uses deprecated method to get the core sometimes getting the wrong 
 core effecting in impossibility to find the right fields in index. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.