Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
Solr, mail # user - bug in termfreq? was Re: is it possible to do a sort without query?


+
Jason Toy 2011-08-08, 20:34
+
Yury Kats 2011-08-08, 20:47
Copy link to this message
-
Re: bug in termfreq? was Re: is it possible to do a sort without query?
Markus Jelsma 2011-08-08, 20:49

> Aelexei, thank you , that does seem to work.
>
> My sort results seem to be totally wrong though, I'm not sure if its
> because of my sort function or something else.
>
> My query consists of:
> sort=termfreq(all_lists_text,'indie+music')+desc&q=*:*&rows=100
> And I get back 4571232 hits.

That's normal, you issue a catch all query. Sorting should work but..

> All the results don't have the phrase "indie music" anywhere in their data.
>  Does termfreq not support phrases?

No, it is TERM frequency and indie music is not one term. I don't know how
this function parses your input but it might not understand your + escape and
think it's one term constisting of exactly that.

> If not, how can I sort specifically by termfreq of a phrase?

You cannot. What you can do is index multiple terms as one term using the
shingle filter. Take care, it can significantly increase your index size and
number of unique terms.

>
>
>
> On Mon, Aug 8, 2011 at 1:08 PM, Alexei Martchenko <
>
> [EMAIL PROTECTED]> wrote:
> > You can use the standard query parser and pass q=*:*
> >
> > 2011/8/8 Jason Toy <[EMAIL PROTECTED]>
> >
> > > I am trying to list some data based on a function I run ,
> > > specifically  termfreq(post_text,'indie music')  and I am unable to do
> > > it without passing in data to the q paramater.  Is it possible to get
> > > a
> >
> > sorted
> >
> > > list without searching for any terms?
> >
> > --
> >
> > *Alexei Martchenko* | *CEO* | Superdownloads
> > [EMAIL PROTECTED] | [EMAIL PROTECTED] | (11)
> > 5083.1018/5080.3535/5080.3533
+
Jason Toy 2011-08-08, 21:02
+
Markus Jelsma 2011-08-08, 21:14
+
Jonathan Rochkind 2011-08-08, 21:13
+
Markus Jelsma 2011-08-08, 21:19
+
Jason Toy 2011-08-08, 22:14
+
Markus Jelsma 2011-08-08, 22:25
+
Alexei Martchenko 2011-08-11, 18:53