[jira] [Commented] (LUCENE-3199) Add non-desctructive sort to BytesRefHash

2011-09-05 Thread Jason Rutherglen (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13097246#comment-13097246
 ] 

Jason Rutherglen commented on LUCENE-3199:
--

I started integrating the patch into LUCENE-2312.  I think the main 
functionality missing is a reverse int[] that points from a term id to the 
sorted ords array.  That array would be used for implementing the RT version of 
DocTermsIndex, where a doc id - term id - sorted term id index.  

 Add non-desctructive sort to BytesRefHash
 -

 Key: LUCENE-3199
 URL: https://issues.apache.org/jira/browse/LUCENE-3199
 Project: Lucene - Java
  Issue Type: Improvement
  Components: core/index
Affects Versions: 4.0
Reporter: Jason Rutherglen
Priority: Minor
 Attachments: LUCENE-3199.patch, LUCENE-3199.patch, LUCENE-3199.patch, 
 LUCENE-3199.patch


 Currently the BytesRefHash is destructive.  We can add a method that returns 
 a non-destructively generated int[].

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-3199) Add non-desctructive sort to BytesRefHash

2011-09-05 Thread Jason Rutherglen (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13097257#comment-13097257
 ] 

Jason Rutherglen commented on LUCENE-3199:
--

Ok, solved the above comment by taking the sorted ord array and building a new 
reverse array from that... 

 Add non-desctructive sort to BytesRefHash
 -

 Key: LUCENE-3199
 URL: https://issues.apache.org/jira/browse/LUCENE-3199
 Project: Lucene - Java
  Issue Type: Improvement
  Components: core/index
Affects Versions: 4.0
Reporter: Jason Rutherglen
Priority: Minor
 Attachments: LUCENE-3199.patch, LUCENE-3199.patch, LUCENE-3199.patch, 
 LUCENE-3199.patch


 Currently the BytesRefHash is destructive.  We can add a method that returns 
 a non-destructively generated int[].

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-3199) Add non-desctructive sort to BytesRefHash

2011-09-02 Thread Uwe Schindler (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13096094#comment-13096094
 ] 

Uwe Schindler commented on LUCENE-3199:
---

Cool idea with the view! Policeman work: SorterTemplate looks correct :-)

 Add non-desctructive sort to BytesRefHash
 -

 Key: LUCENE-3199
 URL: https://issues.apache.org/jira/browse/LUCENE-3199
 Project: Lucene - Java
  Issue Type: Improvement
  Components: core/index
Affects Versions: 4.0
Reporter: Jason Rutherglen
Priority: Minor
 Attachments: LUCENE-3199.patch, LUCENE-3199.patch, LUCENE-3199.patch, 
 LUCENE-3199.patch


 Currently the BytesRefHash is destructive.  We can add a method that returns 
 a non-destructively generated int[].

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-3199) Add non-desctructive sort to BytesRefHash

2011-09-02 Thread Jason Rutherglen (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13096108#comment-13096108
 ] 

Jason Rutherglen commented on LUCENE-3199:
--

Simon,

In summary this is using the BytesRefHash sort, performing array copies and
then merge [sorting] into a new copy / view. 

Array copies are fast and counter intuitively generate far less garbage than
objects (in Java). 

Instead of creating term 'segments' that would be merged while iterating the
terms enum, we'll be generating static point-in-time terms dict views. These
will be useful for enabling DocTermsIndex field caches for RT, the only
remaining design 'challenge' for RT / LUCENE-2312. Because there is a terms
hash, we can seek exact to the term rather than perform an [optimized] seek to
the term.

 Add non-desctructive sort to BytesRefHash
 -

 Key: LUCENE-3199
 URL: https://issues.apache.org/jira/browse/LUCENE-3199
 Project: Lucene - Java
  Issue Type: Improvement
  Components: core/index
Affects Versions: 4.0
Reporter: Jason Rutherglen
Priority: Minor
 Attachments: LUCENE-3199.patch, LUCENE-3199.patch, LUCENE-3199.patch, 
 LUCENE-3199.patch


 Currently the BytesRefHash is destructive.  We can add a method that returns 
 a non-destructively generated int[].

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-3199) Add non-desctructive sort to BytesRefHash

2011-09-02 Thread Jason Rutherglen (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13096231#comment-13096231
 ] 

Jason Rutherglen commented on LUCENE-3199:
--

Simon, I think your patch should be in a different issue, eg, sorted bytes ref 
hash view or something.

 Add non-desctructive sort to BytesRefHash
 -

 Key: LUCENE-3199
 URL: https://issues.apache.org/jira/browse/LUCENE-3199
 Project: Lucene - Java
  Issue Type: Improvement
  Components: core/index
Affects Versions: 4.0
Reporter: Jason Rutherglen
Priority: Minor
 Attachments: LUCENE-3199.patch, LUCENE-3199.patch, LUCENE-3199.patch, 
 LUCENE-3199.patch


 Currently the BytesRefHash is destructive.  We can add a method that returns 
 a non-destructively generated int[].

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-3199) Add non-desctructive sort to BytesRefHash

2011-06-14 Thread Jason Rutherglen (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13048987#comment-13048987
 ] 

Jason Rutherglen commented on LUCENE-3199:
--

I think the issue with this, as it relates to realtime search, is in order to 
sort, we'll need to freeze indexing.

 Add non-desctructive sort to BytesRefHash
 -

 Key: LUCENE-3199
 URL: https://issues.apache.org/jira/browse/LUCENE-3199
 Project: Lucene - Java
  Issue Type: Improvement
  Components: core/index
Affects Versions: 4.0
Reporter: Jason Rutherglen
Priority: Minor

 Currently the BytesRefHash is destructive.  We can add a method that returns 
 a non-destructively generated int[].

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org