Github user afs commented on the pull request:

    https://github.com/apache/jena/pull/72#issuecomment-107150120
  
    About changing return result from `DatasetGraphText.search`:
    
    I'm unsure whether it is better to add `searchWithScore` (or better name?), 
which returns the `List<TextHit>` form, and retain `search` returning 
`List<Node>` (just a `Iter.map` added each time):
    
    Example:
    ```
        /** Search the text index on the default text field */
        public Iterator<TextHit> searchWithScore(String queryString) {
            return search(queryString, null) ;
        }
    
        /** Search the text index on the default text field */
        public Iterator<Node> search(String queryString) {
            return Iter.map(searchWithScore(queryString, 
textHit->textHit.getNode()) ;
        }
    ```
    If the change rote, then Jena3 is the time to do it.
    
    What do you think?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to