I don't see an issue with retaining it, as long as it's got public constructors.
The difference between
responseBuilder.setSort(customSort);  // if you deprecate SortSpec.
and
responseBuilder.setSortSpec (new QueryParser.SortSpec(customSort, -1));

isn't going to kill anyone.

P

Yonik Seeley wrote:
On Nov 19, 2007 10:26 PM, Chris Hostetter <[EMAIL PROTECTED]> wrote:
  
Last time i looked at most usages, the getOffset() and getCount() were
totally ignored
    

Not any more... see QueryComponent.process():

      results.docList = searcher.getDocList(
          builder.getQuery(), builder.getFilters(),
builder.getSortSpec().getSort(),
          builder.getSortSpec().getOffset(), builder.getSortSpec().getCount(),
          builder.getFieldFlags() );

  
A quick grep indicates that the new QParser and QueryComponent stuff
(which i still haven't had time to look at) seems to be using it, but i
can't tell if that's just because that's what's parseSort returns, or if
it's becuse it's actually useful to have those three values bundled in
that way.
    

I think it does make sense to keep them together.
offset and length only make sense if an ordering is specified.

  
if we're going to keep it, let's at least put some mutators on it ... and
maybe consider changing the name.
    

If we change the name, we should also move it to a top-level class
(from a static inner).
Any suggestions?

-Yonik

  

--
Patrick O'Leary


You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles.
 Do you understand this? 
And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat.
  - Albert Einstein
View Patrick O Leary's LinkedIn profileView Patrick O Leary's profile

Reply via email to