You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Grant Ingersoll (JIRA)" <ji...@apache.org> on 2007/10/02 15:01:51 UTC

[jira] Created: (LUCENE-1015) FieldCache should support longs

FieldCache should support longs
-------------------------------

                 Key: LUCENE-1015
                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Search
            Reporter: Grant Ingersoll
            Assignee: Grant Ingersoll
            Priority: Minor


Would be nice if FieldCache supported longs

-- 
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-1015) FieldCache should support longs and doubles

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538309 ] 

Grant Ingersoll commented on LUCENE-1015:
-----------------------------------------

Good idea, will do.

> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1015.patch
>
>
> Would be nice if FieldCache supported longs and doubles

-- 
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-1015) FieldCache should support longs and doubles

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-1015:
------------------------------------

    Summary: FieldCache should support longs and doubles  (was: FieldCache should support longs)

> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>
> Would be nice if FieldCache supported longs

-- 
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


Using HTMLDocument

Posted by Du...@Sun.COM.
HI folks,

    I am using the HTMLDocument 
http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/ant/src/java/org/apache/lucene/ant/

    HtmlDocument hd = new HtmlDocument (p.getInputStream());
    doc.add(new Field(F_CONTENTS, new StringReader(hd.getBody()),
    Field.TermVector.YES ));

    I keep getting these errors.

line 29 column 27 - Error: <st1:place> is not recognized!
line 29 column 47 - Error: <st1:country-region> is not recognized!
line 36 column 21 - Error: <o:p> is not recognized!
line 39 column 67 - Error: <o:p> is not recognized!
line 43 column 45 - Error: <o:p> is not recognized!
line 46 column 52 - Error: <o:p> is not recognized!
line 54 column 27 - Error: <o:p> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 3 column 331 - Error: <img> missing '>' for end of tag
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 1 column 1,214 - Error: <img> missing '>' for end of tag
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 15 column 1 - Error: o:smarttagtype is not recognized!
line 17 column 1 - Error: o:smarttagtype is not recognized!
line 19 column 1 - Error: o:smarttagtype is not recognized!
line 21 column 1 - Error: o:smarttagtype is not recognized!
line 23 column 1 - Error: o:smarttagtype is not recognized!
line 111 column 48 - Error: <o:p> is not recognized!
line 111 column 196 - Error: <o:p> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 1 column 1,444 - Error: <img> missing '>' for end of tag
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 1 column 1,384 - Error: <img> missing '>' for end of tag
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 662 column 11 - Error: <st1:city> is not recognized!
line 663 column 12 - Error: <st1:place> is not recognized!
line 682 column 91 - Error: <st1:personname> is not recognized!
line 686 column 87 - Error: <st1:place> is not recognized!
line 687 column 12 - Error: <st1:placename> is not recognized!
line 687 column 62 - Error: <st1:placetype> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 283 column 61 - Error: <o:p> is not recognized!
line 288 column 72 - Error: <o:p> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 118 column 41 - Error: <o:p> is not recognized!
line 151 column 34 - Error: <o:p> is not recognized!
line 153 column 22 - Error: <o:p> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 174 column 43 - Error: <o:p> is not recognized!
line 209 column 36 - Error: <o:p> is not recognized!
line 212 column 17 - Error: <o:p> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 163 column 47 - Error: <o:p> is not recognized!
line 198 column 38 - Error: <o:p> is not recognized!
line 200 column 28 - Error: <o:p> is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 123 column 18 - Error: <font> missing '>' for end of tag
line 195 column 25 - Error: <font> missing '>' for end of tag
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.


line 123 column 18 - Error: <font> missing '>' for end of tag
line 195 column 25 - Error: <font> missing '>' for end of tag
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.

_Durga

[jira] Resolved: (LUCENE-1015) FieldCache should support longs and doubles

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll resolved LUCENE-1015.
-------------------------------------

       Resolution: Fixed
    Lucene Fields:   (was: [New])

Committed.

> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1015.patch, LUCENE-1015.patch
>
>
> Would be nice if FieldCache supported longs and doubles

-- 
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-1015) FieldCache should support longs and doubles

Posted by "Brian Pinkerton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538281 ] 

Brian Pinkerton commented on LUCENE-1015:
-----------------------------------------

While you're at it, would you mind adding shorts as well?  When you have a lot of docs in a collection the space savings realized by using shorts instead of ints can make a real difference in the number of docs supportable on a given hardware platform.


> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1015.patch
>
>
> Would be nice if FieldCache supported longs and doubles

-- 
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-1015) FieldCache should support longs and doubles

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-1015:
------------------------------------

    Attachment: LUCENE-1015.patch

Added tests, fixed some documentation bugs.

Will commit tonight or tomorrow

> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1015.patch, LUCENE-1015.patch
>
>
> Would be nice if FieldCache supported longs and doubles

-- 
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] Issue Comment Edited: (LUCENE-1015) FieldCache should support longs and doubles

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537602 ] 

gsingers edited comment on LUCENE-1015 at 10/25/07 7:00 AM:
-------------------------------------------------------------------

I am going to commit this sometime tomorrow unless there are objections.  It doesn't sound like anyone is stepping up on 831 at the moment, so they can refactor as necessary.

Will also add in the necessary testing.

      was (Author: gsingers):
    I am going to commit this sometime tomorrow unless there are objections.  It doesn't sound like anyone is stepping up on 831 at the moment, so they can refactor as necessary.
  
> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1015.patch
>
>
> Would be nice if FieldCache supported longs and doubles

-- 
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-1015) FieldCache should support longs and doubles

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536813 ] 

Mark Miller commented on LUCENE-1015:
-------------------------------------

Finishing up LUCENE-831 would seem like a good way to add this as well -- while also getting the juicy benefits of 831 combined with 743. Of course, this only applies if someone where to finish 831 and it where accepted...

> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1015.patch
>
>
> Would be nice if FieldCache supported longs and doubles

-- 
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-1015) FieldCache should support longs and doubles

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537602 ] 

Grant Ingersoll commented on LUCENE-1015:
-----------------------------------------

I am going to commit this sometime tomorrow unless there are objections.  It doesn't sound like anyone is stepping up on 831 at the moment, so they can refactor as necessary.

> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1015.patch
>
>
> Would be nice if FieldCache supported longs and doubles

-- 
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-1015) FieldCache should support longs and doubles

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-1015:
------------------------------------

    Description: Would be nice if FieldCache supported longs and doubles  (was: Would be nice if FieldCache supported longs)

> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>
> Would be nice if FieldCache supported longs and doubles

-- 
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-1015) FieldCache should support longs

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531780 ] 

Grant Ingersoll commented on LUCENE-1015:
-----------------------------------------

Of course, since FieldCache is an interface, we need to think about back-compatibility...

> FieldCache should support longs
> -------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>
> Would be nice if FieldCache supported longs

-- 
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-1015) FieldCache should support longs and doubles

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538492 ] 

Grant Ingersoll commented on LUCENE-1015:
-----------------------------------------

Actually, the FieldCache already supports byte and shorts.

> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1015.patch
>
>
> Would be nice if FieldCache supported longs and doubles

-- 
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-1015) FieldCache should support longs and doubles

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-1015:
------------------------------------

    Attachment: LUCENE-1015.patch

First draft at a patch to add long and double FieldCache support by extending the FieldCache interface (can't just add b/c of back-compatibility reasons).  Adds support in the SortField and the two HItQueue's.  Still needs to be more thoroughly tested, but wanted to get comments first.

> FieldCache should support longs and doubles
> -------------------------------------------
>
>                 Key: LUCENE-1015
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1015
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1015.patch
>
>
> Would be nice if FieldCache supported longs and doubles

-- 
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