[jira] Created: (SOLR-2171) Using stats feature over a function, Function returning as a field value

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SOLR-2171) Using stats feature over a function, Function returning as a field value

Tim Allison (Jira)
Using stats feature over a function, Function returning as a field value
------------------------------------------------------------------------

                 Key: SOLR-2171
                 URL: https://issues.apache.org/jira/browse/SOLR-2171
             Project: Solr
          Issue Type: New Feature
          Components: Schema and Analysis, search
         Environment: All
            Reporter: Tanguy Moal
            Priority: Minor


In order to be able to take big advantage of the stats component, it would be great to be able to define a function as a field.

Returning the result of a function as a "virtual" field for each document for example, would enable us to have a much more advanced use of the stats component.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2171) Using stats feature over a function, Function returning as a field value

Tim Allison (Jira)

    [ https://issues.apache.org/jira/browse/SOLR-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923080#action_12923080 ]

Grant Ingersoll commented on SOLR-2171:
---------------------------------------

Tanguy,

How do you see this relating to https://issues.apache.org/jira/browse/SOLR-1622?  In other words, if the StatsComponent had more generic aggregating math capabilities, would that solve your need?

> Using stats feature over a function, Function returning as a field value
> ------------------------------------------------------------------------
>
>                 Key: SOLR-2171
>                 URL: https://issues.apache.org/jira/browse/SOLR-2171
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis, search
>         Environment: All
>            Reporter: Tanguy Moal
>            Priority: Minor
>
> In order to be able to take big advantage of the stats component, it would be great to be able to define a function as a field.
> Returning the result of a function as a "virtual" field for each document for example, would enable us to have a much more advanced use of the stats component.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2171) Using stats feature over a function, Function returning as a field value

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

    [ https://issues.apache.org/jira/browse/SOLR-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923127#action_12923127 ]

Tanguy Moal commented on SOLR-2171:
-----------------------------------

Hi Grant,
For sure I see some kind of a relation with that issue, but I also think that having the result of the virtually defined field stored in each hit of the answer would be powerful.

For example, one might define a distance field taking a pair of lat/long as parameters, compute the distance according to a pair of lat/long indexed in each hit, and have the ability to sort the results by ascending distance... Interesting for local-apps certainly!

I can't see such an opportunity in the suggested issue, although it certainly fulfill the requirements expressed firstly in that issue's description...

Combining this with the existant stats component would maximize flexibilty from my point of view.

Did I miss something in the linked issue or does it also take into account the possibility to perform sorting and/or hits scores operations on the so-built response stream ?

Kind regards,

--
Tanguy Moal





> Using stats feature over a function, Function returning as a field value
> ------------------------------------------------------------------------
>
>                 Key: SOLR-2171
>                 URL: https://issues.apache.org/jira/browse/SOLR-2171
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis, search
>         Environment: All
>            Reporter: Tanguy Moal
>            Priority: Minor
>
> In order to be able to take big advantage of the stats component, it would be great to be able to define a function as a field.
> Returning the result of a function as a "virtual" field for each document for example, would enable us to have a much more advanced use of the stats component.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2171) Using stats feature over a function, Function returning as a field value

Tim Allison (Jira)
In reply to this post by Tim Allison (Jira)

    [ https://issues.apache.org/jira/browse/SOLR-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924951#action_12924951 ]

Tanguy Moal commented on SOLR-2171:
-----------------------------------

Hi,

adding a little comment to let you know I finally had the time to have my checkout of solr+lucene up and ready, and so I am to start having a look inside the code...

I had a few issues building solr in Eclipse, with the XML APIs, has expected there http://wiki.apache.org/solr/HowToContribute#Notes_for_Eclipse_and_the_New_Merged_Lucene.2BAC8-Solr_checkout , but the workaround wasn't working for me.
(I am running Ubuntu Lucid with Eclipse 3.5.2 and Sun's JVM 1.6, all from apt)

Finally, I was able to build in Eclipse by moving xml-apis jar to the bottom of Build Path, and this is it.

Maybe updating the wiki could help others...

I'll begin with the "org.apache.solr.search.function" package, and how the DocValues class is used. I'll probably have a hint of what to do next and ask more questions consequently.

Regards,

> Using stats feature over a function, Function returning as a field value
> ------------------------------------------------------------------------
>
>                 Key: SOLR-2171
>                 URL: https://issues.apache.org/jira/browse/SOLR-2171
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis, search
>         Environment: All
>            Reporter: Tanguy Moal
>            Priority: Minor
>
> In order to be able to take big advantage of the stats component, it would be great to be able to define a function as a field.
> Returning the result of a function as a "virtual" field for each document for example, would enable us to have a much more advanced use of the stats component.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]