lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ayush Gupta <agu...@algoscale.com>
Subject Re: Fq and termfrequency are not showing the correct results
Date Wed, 05 Apr 2017 06:18:28 GMT
Thanks for the reply. Actaully I've always used termfreq to get word counts
for 2- , 3- and 4- word keywords.

we use shingles to accomplish this. (ShingleFactory)

On Wed, Apr 5, 2017 at 12:17 AM, Erick Erickson <erickerickson@gmail.com>
wrote:

> Functions like termfreq operate on single terms post analysis
>
> Since it's an analyzed field you have no _term_ "bachelor's degree" or
> even "bachelor degree" in the field. You have two terms, "bachelor"
> and "degree". This also assumes that by "zero results" you mean you
> get no frequency information back.
>
> Best,
> Erick
>
> On Tue, Apr 4, 2017 at 2:19 AM, Ayush Gupta <agupta@algoscale.com> wrote:
> > Hi Everyone,
> >
> > I have a document that contains data like this "Bachelor's degree is
> easier
> > to get" in the 'body' field and I am making a query on this field
> searching
> > for word 'Bachelor's degree' like this -
> > query?fq=body:"bachelor%27s%20degree"&fl=body_frequency:
> termfreq(body,"bachelor%27s%20degree"),body
> > and I am getting zero results in response even when I have documents that
> > contains words like 'Bachelor's degree'.
> >
> > I checked in the admin panel tab , there i can see the
> > WordDelimiterFilterFactory applied on the word 'Bachelor's Degree' and
> > converting it to 'Bachelor degree'. So both in the Field Value (Query)
> and
> > Field Value (Index) the WordDelimiterFilterFactory is converting the word
> > 'Bachelor's Degree' to 'Bachelor's Degree' , SO why I am getting zero
> > results when quering. I have attached the screenshots of my analysis
> page.
> >
> >
> > I have attached a code file 'code.txt' where you can see the code for the
> > field 'body'.
> >
> >
> > Please tell me what Am I doing wrong.
> >
> > Thanks
> >
> >
> > CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents,
> files
> > or previous e-mail messages attached to it, are confidential and may be
> > privileged.  If you are not the intended recipient, or a person
> responsible
> > for delivering it to the intended recipient, you are hereby notified that
> > any review, disclosure, copying, distribution, retransmission,
> dissemination
> > or other use of any of the information contained in, or attached to, this
> > transmission is STRICTLY PROHIBITED.  If you have received this
> transmission
> > in error, please immediately notify the sender.  Please destroy the
> original
> > transmission and its attachments without reading or saving in any manner.
> > Thank you.
> >
> > algoscale technologies private limited
>

-- 
*CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files 
or previous e-mail messages attached to it, are confidential and may be 
privileged.  If you are not the intended recipient, or a person responsible 
for delivering it to the intended recipient, you are hereby notified that 
any review, disclosure, copying, distribution, retransmission, 
dissemination or other use of any of the information contained in, or 
attached to, this transmission is STRICTLY PROHIBITED.  If you have 
received this transmission in error, please immediately notify the sender. 
 Please destroy the original transmission and its attachments without 
reading or saving in any manner. Thank you.*

*algoscale technologies private limited*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message