You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ali Oral (JIRA)" <ji...@apache.org> on 2009/07/03 18:53:47 UTC
[jira] Created: (LUCENE-1733) term field equality in
term field equality in
-----------------------
Key: LUCENE-1733
URL: https://issues.apache.org/jira/browse/LUCENE-1733
Project: Lucene - Java
Issue Type: Bug
Components: Index
Reporter: Ali Oral
The ordering of terms is first by field, then by text.*/
public final int compareTo(Term other) {
if (field == other.field) // fields are interned
return text.compareTo(other.text);
else
return field.compareTo(other.field);
}
I am developing a custom query object. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. When I changed field == other.field statement to field.equals(other.field) the problem was solved.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Closed: (LUCENE-1733) Term.compareTo returns unexpected
results. (field == other.field)
Posted by "Ali Oral (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ali Oral closed LUCENE-1733.
----------------------------
Resolution: Invalid
> Term.compareTo returns unexpected results. (field == other.field)
> ------------------------------------------------------------------
>
> Key: LUCENE-1733
> URL: https://issues.apache.org/jira/browse/LUCENE-1733
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Reporter: Ali Oral
> Priority: Minor
>
> The ordering of terms is first by field, then by text.*/
> public final int compareTo(Term other) {
> if (field == other.field) // fields are interned
> return text.compareTo(other.text);
> else
> return field.compareTo(other.field);
> }
> I am developing a custom query class. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. AfterI changed field == other.field statement to field.equals(other.field) the problem was solved.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1733) Term.compareTo returns unexpected
results. (field == other.field)
Posted by "Ali Oral (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ali Oral updated LUCENE-1733:
-----------------------------
Description:
The ordering of terms is first by field, then by text.*/
public final int compareTo(Term other) {
if (field == other.field) // fields are interned
return text.compareTo(other.text);
else
return field.compareTo(other.field);
}
I am developing a custom query class. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. AfterI changed field == other.field statement to field.equals(other.field) the problem was solved.
was:
The ordering of terms is first by field, then by text.*/
public final int compareTo(Term other) {
if (field == other.field) // fields are interned
return text.compareTo(other.text);
else
return field.compareTo(other.field);
}
I am developing a custom query class. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. When I changed field == other.field statement to field.equals(other.field) the problem was solved.
> Term.compareTo returns unexpected results. (field == other.field)
> ------------------------------------------------------------------
>
> Key: LUCENE-1733
> URL: https://issues.apache.org/jira/browse/LUCENE-1733
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Reporter: Ali Oral
> Priority: Minor
>
> The ordering of terms is first by field, then by text.*/
> public final int compareTo(Term other) {
> if (field == other.field) // fields are interned
> return text.compareTo(other.text);
> else
> return field.compareTo(other.field);
> }
> I am developing a custom query class. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. AfterI changed field == other.field statement to field.equals(other.field) the problem was solved.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1733) Term.compareTo returns unexpected
results. (field == other.field)
Posted by "Ali Oral (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ali Oral updated LUCENE-1733:
-----------------------------
Priority: Minor (was: Major)
Description:
The ordering of terms is first by field, then by text.*/
public final int compareTo(Term other) {
if (field == other.field) // fields are interned
return text.compareTo(other.text);
else
return field.compareTo(other.field);
}
I am developing a custom query class. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. When I changed field == other.field statement to field.equals(other.field) the problem was solved.
was:
The ordering of terms is first by field, then by text.*/
public final int compareTo(Term other) {
if (field == other.field) // fields are interned
return text.compareTo(other.text);
else
return field.compareTo(other.field);
}
I am developing a custom query object. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. When I changed field == other.field statement to field.equals(other.field) the problem was solved.
Summary: Term.compareTo returns unexpected results. (field == other.field) (was: term field equality in )
> Term.compareTo returns unexpected results. (field == other.field)
> ------------------------------------------------------------------
>
> Key: LUCENE-1733
> URL: https://issues.apache.org/jira/browse/LUCENE-1733
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Reporter: Ali Oral
> Priority: Minor
>
> The ordering of terms is first by field, then by text.*/
> public final int compareTo(Term other) {
> if (field == other.field) // fields are interned
> return text.compareTo(other.text);
> else
> return field.compareTo(other.field);
> }
> I am developing a custom query class. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. When I changed field == other.field statement to field.equals(other.field) the problem was solved.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1733) Term.compareTo returns unexpected
results. (field == other.field)
Posted by "Ali Oral (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727074#action_12727074 ]
Ali Oral commented on LUCENE-1733:
----------------------------------
Thank you for the quick response. I realized that it was my mistake and
closed the issue. I should have asked to the mailing group before creating
the issue in Jira.
Thanks,
Ali
> Term.compareTo returns unexpected results. (field == other.field)
> ------------------------------------------------------------------
>
> Key: LUCENE-1733
> URL: https://issues.apache.org/jira/browse/LUCENE-1733
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Reporter: Ali Oral
> Priority: Minor
>
> The ordering of terms is first by field, then by text.*/
> public final int compareTo(Term other) {
> if (field == other.field) // fields are interned
> return text.compareTo(other.text);
> else
> return field.compareTo(other.field);
> }
> I am developing a custom query class. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. AfterI changed field == other.field statement to field.equals(other.field) the problem was solved.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1733) Term.compareTo returns unexpected
results. (field == other.field)
Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727053#action_12727053 ]
Yonik Seeley commented on LUCENE-1733:
--------------------------------------
The field names in Term instances should always be interned... did you somehow use the package-protected constructor Term(String fld, String txt, boolean intern)?
> Term.compareTo returns unexpected results. (field == other.field)
> ------------------------------------------------------------------
>
> Key: LUCENE-1733
> URL: https://issues.apache.org/jira/browse/LUCENE-1733
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Reporter: Ali Oral
> Priority: Minor
>
> The ordering of terms is first by field, then by text.*/
> public final int compareTo(Term other) {
> if (field == other.field) // fields are interned
> return text.compareTo(other.text);
> else
> return field.compareTo(other.field);
> }
> I am developing a custom query class. I had unexpected results time to time. When I debugged the code I found that Term.compareTo() method returns inconsistent values. AfterI changed field == other.field statement to field.equals(other.field) the problem was solved.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org