Hey,

I am currently using solr to recognize songs and people from a list of user
comments. My index stores the titles of the songs. At the moment my
application builds word ngrams and fires a search with that query, which
works well but is quite inefficient.

So my thought was to simply use the collated comments as query. So it is a
case where the query is much longer. I need to use mm=0 or mm=1.

My plan was to use edismax as the pf2 and pf3 parameters should work well
for my usecase.

However when using longer queries, I get a strange behavior which can be
seen in debugQuery.

Here is an example:

Collated Comments (used as query)

"I love Henry so much. It is hard to tear your eyes away from Maria, but
watch just his feet. You'll be amazed.
sometimes pure skill can will a comp, sometimes pure joy can win... put
them both together and there is no competition
This video clip makes me smile.
Pure joy!
so good!
Who's the person that gave this a thumbs down?!? This is one of the best
routines I've ever seen. Period. And it's a competitionl! How is that
possible? They're so good it boggles my mind.
It's gorgeous. Flawless victory.
Great number! Does anybody know the name of the piece?
I believe it's called Sunny side of the street
Maria is like, the best 'follow' I've ever seen. She's so amazing.
Thanks so much Johnathan!"

Song name in Index
Louis Armstrong - Sunny Side of The Street

parsedquery_toString:
+(((text:I) (text:love) (text:Henry) (text:so) (text:much.) (text:It)
(text:is) (text:hard) (text:to) (text:tear) (text:your) (text:eyes)
(text:away) (text:from) (text:Maria,) (text:but) (text:watch) (text:just)
(text:his) (text:feet.) (text:You'll) (text:be) (text:amazed.)
(text:sometimes) (text:pure) (text:skill) (text:can) (text:will) (text:a)
(text:comp,) (text:sometimes) (text:pure) (text:joy) (text:can)
(text:win...) (text:put) (text:them) (text:both) +(text:together)
+(text:there) (text:is) (text:no) (text:competition) (text:This)
(text:video) (text:clip) (text:makes) (text:me) (text:smile.) (text:Pure)
(text:joy!) (text:so) (text:good!) (text:Who's) (text:the) (text:person)
(text:that) (text:gave) (text:this) (text:a) (text:thumbs) (text:down?!?)
(text:This) (text:is) (text:one) (text:of) (text:the) (text:best)
(text:routines) (text:I've) (text:ever) (text:seen.) +(text:Period.)
+(text:it's) (text:a) (text:competitionl!) (text:How) (text:is) (text:that)
(text:possible?) (text:They're) (text:so) (text:good) (text:it)
(text:boggles) (text:my) (text:mind.) (text:It's) (text:gorgeous.)
(text:Flawless) (text:victory.) (text:Great) (text:number!) (text:Does)
(text:anybody) (text:know) (text:the) (text:name) (text:of) (text:the)
(text:piece?) (text:I) (text:believe) (text:it's) (text:called)
(text:Sunny) (text:side) (text:of) (text:the) (text:street) (text:Maria)
(text:is) (text:like,) (text:the) (text:best) (text:'follow') (text:I've)
(text:ever) (text:seen.) (text:She's) (text:so) (text:amazing.)
(text:Thanks) (text:so) (text:much) (text:Johnathan!))~1)</str>

This query generates 0 results. The reason is it expects terms together,
there, Period., it's to be part of the document (see parsedquery above, all
other terms are optional, those terms are must).

Is there any reason for this behavior? If I use shorter queries it works
flawlessly and returns the document.

I've appended the whole query.

Best,

Nils
<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
  <int name="status">0</int>
  <int name="QTime">11</int>
</lst>
<result name="response" numFound="0" start="0">
</result>
<lst name="debug">
  <str name="rawquerystring">I love Henry so much. It is hard to tear your eyes away from Maria, but watch just his feet. You'll be amazed.
sometimes pure skill can will a comp, sometimes pure joy can win... put them both together and there is no competition
This video clip makes me smile.
Pure joy!
so good!
Who's the person that gave this a thumbs down?!? This is one of the best routines I've ever seen. Period. And it's a competitionl! How is that possible? They're so good it boggles my mind.
It's gorgeous. Flawless victory.
Great number! Does anybody know the name of the piece?
I believe it's called Sunny side of the street
Maria is like, the best 'follow' I've ever seen. She's so amazing.
Thanks so much Johnathan!
</str>
  <str name="querystring">I love Henry so much. It is hard to tear your eyes away from Maria, but watch just his feet. You'll be amazed.
sometimes pure skill can will a comp, sometimes pure joy can win... put them both together and there is no competition
This video clip makes me smile.
Pure joy!
so good!
Who's the person that gave this a thumbs down?!? This is one of the best routines I've ever seen. Period. And it's a competitionl! How is that possible? They're so good it boggles my mind.
It's gorgeous. Flawless victory.
Great number! Does anybody know the name of the piece?
I believe it's called Sunny side of the street
Maria is like, the best 'follow' I've ever seen. She's so amazing.
Thanks so much Johnathan!
</str>
  <str name="parsedquery">(+((DisjunctionMaxQuery((text:I)) DisjunctionMaxQuery((text:love)) DisjunctionMaxQuery((text:Henry)) DisjunctionMaxQuery((text:so)) DisjunctionMaxQuery((text:much.)) DisjunctionMaxQuery((text:It)) DisjunctionMaxQuery((text:is)) DisjunctionMaxQuery((text:hard)) DisjunctionMaxQuery((text:to)) DisjunctionMaxQuery((text:tear)) DisjunctionMaxQuery((text:your)) DisjunctionMaxQuery((text:eyes)) DisjunctionMaxQuery((text:away)) DisjunctionMaxQuery((text:from)) DisjunctionMaxQuery((text:Maria,)) DisjunctionMaxQuery((text:but)) DisjunctionMaxQuery((text:watch)) DisjunctionMaxQuery((text:just)) DisjunctionMaxQuery((text:his)) DisjunctionMaxQuery((text:feet.)) DisjunctionMaxQuery((text:You'll)) DisjunctionMaxQuery((text:be)) DisjunctionMaxQuery((text:amazed.)) DisjunctionMaxQuery((text:sometimes)) DisjunctionMaxQuery((text:pure)) DisjunctionMaxQuery((text:skill)) DisjunctionMaxQuery((text:can)) DisjunctionMaxQuery((text:will)) DisjunctionMaxQuery((text:a)) DisjunctionMaxQuery((text:comp,)) DisjunctionMaxQuery((text:sometimes)) DisjunctionMaxQuery((text:pure)) DisjunctionMaxQuery((text:joy)) DisjunctionMaxQuery((text:can)) DisjunctionMaxQuery((text:win...)) DisjunctionMaxQuery((text:put)) DisjunctionMaxQuery((text:them)) DisjunctionMaxQuery((text:both)) +DisjunctionMaxQuery((text:together)) +DisjunctionMaxQuery((text:there)) DisjunctionMaxQuery((text:is)) DisjunctionMaxQuery((text:no)) DisjunctionMaxQuery((text:competition)) DisjunctionMaxQuery((text:This)) DisjunctionMaxQuery((text:video)) DisjunctionMaxQuery((text:clip)) DisjunctionMaxQuery((text:makes)) DisjunctionMaxQuery((text:me)) DisjunctionMaxQuery((text:smile.)) DisjunctionMaxQuery((text:Pure)) DisjunctionMaxQuery((text:joy!)) DisjunctionMaxQuery((text:so)) DisjunctionMaxQuery((text:good!)) DisjunctionMaxQuery((text:Who's)) DisjunctionMaxQuery((text:the)) DisjunctionMaxQuery((text:person)) DisjunctionMaxQuery((text:that)) DisjunctionMaxQuery((text:gave)) DisjunctionMaxQuery((text:this)) DisjunctionMaxQuery((text:a)) DisjunctionMaxQuery((text:thumbs)) DisjunctionMaxQuery((text:down?!?)) DisjunctionMaxQuery((text:This)) DisjunctionMaxQuery((text:is)) DisjunctionMaxQuery((text:one)) DisjunctionMaxQuery((text:of)) DisjunctionMaxQuery((text:the)) DisjunctionMaxQuery((text:best)) DisjunctionMaxQuery((text:routines)) DisjunctionMaxQuery((text:I've)) DisjunctionMaxQuery((text:ever)) DisjunctionMaxQuery((text:seen.)) +DisjunctionMaxQuery((text:Period.)) +DisjunctionMaxQuery((text:it's)) DisjunctionMaxQuery((text:a)) DisjunctionMaxQuery((text:competitionl!)) DisjunctionMaxQuery((text:How)) DisjunctionMaxQuery((text:is)) DisjunctionMaxQuery((text:that)) DisjunctionMaxQuery((text:possible?)) DisjunctionMaxQuery((text:They're)) DisjunctionMaxQuery((text:so)) DisjunctionMaxQuery((text:good)) DisjunctionMaxQuery((text:it)) DisjunctionMaxQuery((text:boggles)) DisjunctionMaxQuery((text:my)) DisjunctionMaxQuery((text:mind.)) DisjunctionMaxQuery((text:It's)) DisjunctionMaxQuery((text:gorgeous.)) DisjunctionMaxQuery((text:Flawless)) DisjunctionMaxQuery((text:victory.)) DisjunctionMaxQuery((text:Great)) DisjunctionMaxQuery((text:number!)) DisjunctionMaxQuery((text:Does)) DisjunctionMaxQuery((text:anybody)) DisjunctionMaxQuery((text:know)) DisjunctionMaxQuery((text:the)) DisjunctionMaxQuery((text:name)) DisjunctionMaxQuery((text:of)) DisjunctionMaxQuery((text:the)) DisjunctionMaxQuery((text:piece?)) DisjunctionMaxQuery((text:I)) DisjunctionMaxQuery((text:believe)) DisjunctionMaxQuery((text:it's)) DisjunctionMaxQuery((text:called)) DisjunctionMaxQuery((text:Sunny)) DisjunctionMaxQuery((text:side)) DisjunctionMaxQuery((text:of)) DisjunctionMaxQuery((text:the)) DisjunctionMaxQuery((text:street)) DisjunctionMaxQuery((text:Maria)) DisjunctionMaxQuery((text:is)) DisjunctionMaxQuery((text:like,)) DisjunctionMaxQuery((text:the)) DisjunctionMaxQuery((text:best)) DisjunctionMaxQuery((text:'follow')) DisjunctionMaxQuery((text:I've)) DisjunctionMaxQuery((text:ever)) DisjunctionMaxQuery((text:seen.)) DisjunctionMaxQuery((text:She's)) DisjunctionMaxQuery((text:so)) DisjunctionMaxQuery((text:amazing.)) DisjunctionMaxQuery((text:Thanks)) DisjunctionMaxQuery((text:so)) DisjunctionMaxQuery((text:much)) DisjunctionMaxQuery((text:Johnathan!)))~1))/no_coord</str>
  <str name="parsedquery_toString">+(((text:I) (text:love) (text:Henry) (text:so) (text:much.) (text:It) (text:is) (text:hard) (text:to) (text:tear) (text:your) (text:eyes) (text:away) (text:from) (text:Maria,) (text:but) (text:watch) (text:just) (text:his) (text:feet.) (text:You'll) (text:be) (text:amazed.) (text:sometimes) (text:pure) (text:skill) (text:can) (text:will) (text:a) (text:comp,) (text:sometimes) (text:pure) (text:joy) (text:can) (text:win...) (text:put) (text:them) (text:both) +(text:together) +(text:there) (text:is) (text:no) (text:competition) (text:This) (text:video) (text:clip) (text:makes) (text:me) (text:smile.) (text:Pure) (text:joy!) (text:so) (text:good!) (text:Who's) (text:the) (text:person) (text:that) (text:gave) (text:this) (text:a) (text:thumbs) (text:down?!?) (text:This) (text:is) (text:one) (text:of) (text:the) (text:best) (text:routines) (text:I've) (text:ever) (text:seen.) +(text:Period.) +(text:it's) (text:a) (text:competitionl!) (text:How) (text:is) (text:that) (text:possible?) (text:They're) (text:so) (text:good) (text:it) (text:boggles) (text:my) (text:mind.) (text:It's) (text:gorgeous.) (text:Flawless) (text:victory.) (text:Great) (text:number!) (text:Does) (text:anybody) (text:know) (text:the) (text:name) (text:of) (text:the) (text:piece?) (text:I) (text:believe) (text:it's) (text:called) (text:Sunny) (text:side) (text:of) (text:the) (text:street) (text:Maria) (text:is) (text:like,) (text:the) (text:best) (text:'follow') (text:I've) (text:ever) (text:seen.) (text:She's) (text:so) (text:amazing.) (text:Thanks) (text:so) (text:much) (text:Johnathan!))~1)</str>
  <lst name="explain"/>
  <str name="QParser">ExtendedDismaxQParser</str>
  <null name="altquerystring"/>
  <null name="boost_queries"/>
  <arr name="parsed_boost_queries"/>
  <null name="boostfuncs"/>
  <lst name="timing">
    <double name="time">11.0</double>
    <lst name="prepare">
      <double name="time">9.0</double>
      <lst name="query">
        <double name="time">9.0</double>
      </lst>
      <lst name="facet">
        <double name="time">0.0</double>
      </lst>
      <lst name="mlt">
        <double name="time">0.0</double>
      </lst>
      <lst name="highlight">
        <double name="time">0.0</double>
      </lst>
      <lst name="stats">
        <double name="time">0.0</double>
      </lst>
      <lst name="spellcheck">
        <double name="time">0.0</double>
      </lst>
      <lst name="debug">
        <double name="time">0.0</double>
      </lst>
    </lst>
    <lst name="process">
      <double name="time">2.0</double>
      <lst name="query">
        <double name="time">1.0</double>
      </lst>
      <lst name="facet">
        <double name="time">0.0</double>
      </lst>
      <lst name="mlt">
        <double name="time">0.0</double>
      </lst>
      <lst name="highlight">
        <double name="time">0.0</double>
      </lst>
      <lst name="stats">
        <double name="time">0.0</double>
      </lst>
      <lst name="spellcheck">
        <double name="time">0.0</double>
      </lst>
      <lst name="debug">
        <double name="time">1.0</double>
      </lst>
    </lst>
  </lst>
</lst>
</response>

Reply via email to