List Info

Thread: SV: Re: SV: Re: SV: Re: SV: Re: Simple Web Interface




SV: Re: SV: Re: SV: Re: SV: Re: Simple Web Interface
country flaguser name
Sweden
2007-03-22 19:54:34
--- Erik Hatcher <erikehatchersolutions.com>
skrev:


> Solr supports facet queries.  In your example, Solr
could be asked  
> for a count of all documents (matching other
constraints perhaps too,  
> of course) that have an Author field... that would be 

> &facet.query=Author:[* TO *], or the opposite, all
documents that do  
> not have an Author field with
&facet.query=-Author:[* TO *].

I can't seems to get it working i.e both the cases i get the
same results. 
I am using the delicous sample data and trying to do 
&facet.query=-field_name:[* TO *] and
&facet.query=field_name:[* TO *]

Example on delicous data 

Saved Search
&facet.query=author_text:[* TO *] (12)
&facet.query=-author_text:[* TO *] (12)

&facet.query=genre_facet:[* TO *] (12)
&facet.query=-genre_facet:[* TO *] (12)

Is the above is correct behavior.. i mean
"-author_text" or "-genre_facet" 
means - Don't show me any record which HAS a genre_facet?
no? shouldn't
the result be 0.. no?


> Give saved searches a try in Flare for an example, type
each of those  
> expressions as unique constraints and save them. 
You'll see what I  
> mean then, I think.  

>Also, look at the individual facet pages (the  
> "browse" links by each facet) and see the
last entry that shows "---  
> NO VALUE ---".  Is this getting warmer to what
you're after?

Yes. This works.. does that mean above is a bug..no?

> 
> Let me know if the above information doesn't do what
you're after,  
> but I think we got the use-case you're after covered.

However I am not sure I did the test correctly. But lets
take the 
delicous data for this explanation. If you try the search
box -- right side
and type in -- you will see a drop down list with david(2).
Now
what I would like to show to the user is the following

Internet (4) .. which is not a problem as we are already
doing that in flare.
But in a case where i don't know the what is in my index I
would like to show
"top query terms" or "top 100 query
terms" or "all queries having more then 50 
matches" etc. But present it in following way... for
the above example

Internet (4)
  - genere_facet (2)
  - description_text (2)

Well, I am after newsmap. I need to develop that
functionality.. in newsmap
you have facets which are geographic (Uk, US, World) and
subject matter
(Technology, Business, etc).. in my case there are lot more
subject matter but if
you look at newsmap you will see that they have "a news
title" and when you move
the mouse you will see "number of times the news item
is in the media". I am
not sure I can do that with solr out of the box.. well I
started to look
at the search end of the puzzle for my project today.. I
will soon find out.

Again I appreciate your help and time. Any pointers are
always welcome

Regards


	
	
		
_________________________________________________________
Flyger tiden iväg? Fånga dagen med Yahoo! Mails inbyggda
kalender. Dessutom 250 MB gratis, virusscanning och
antispam. Få den på: http://se.mail.yahoo.com


flare - missing cat field??
country flaguser name
Sweden
2007-03-29 06:21:20
Hi:

I am as always bit confused  When you
browse facets ..it works but the search box throws out a
missing cat field.. I am using the delicous sample
data..NOTE .. Auto suggest query is using
standard query handler instead of dismax..

Browse ..

Mar 29, 2007 1:13:54 PM org.apache.solr.core.SolrCore
execute
INFO: null
facet.limit=20&wt=ruby&rows=25&start=0&facet
=true&facet.mincount=1&fl=*,score&qt=dismax&
hl.fl=author_text,full_title_text,pages_text,description_tex
t,title_text,asin_text&facet.field=publisher_facet&f
acet.field=country_facet&facet.field=genre_facet&fac
et.field=medium_facet&facet.field=published_year_facet&a
mp;facet.field=rating_facet&fq=publisher_facet:"Har
per+Paperbacks"&pf=author_text&pf=full_title_te
xt&pf=pages_text&pf=description_text&pf=title_te
xt&pf=asin_text&hl=true&facet.sort=true
0 42

Search using the search box..

Mar 29, 2007 1:15:23 PM org.apache.solr.core.SolrException
log
SEVERE: org.apache.solr.core.SolrException: undefined field
cat
        at
org.apache.solr.schema.IndexSchema.getDynamicFieldType(Index
Schema.java:765)
        at
org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getAnal
yzer(IndexSchema.java:275)
        at
org.apache.solr.schema.IndexSchema$SolrIndexAnalyzer.tokenSt
ream(IndexSchema.java:253)
        at
org.apache.lucene.queryParser.QueryParser.getFieldQuery(Quer
yParser.java:423)
        at
org.apache.solr.search.SolrQueryParser.getFieldQuery(SolrQue
ryParser.java:78)
        at
org.apache.solr.util.SolrPluginUtils$DisjunctionMaxQueryPars
er.getFieldQuery(SolrPluginUtils.java:775)
        at
org.apache.solr.util.SolrPluginUtils$DisjunctionMaxQueryPars
er.getFieldQuery(SolrPluginUtils.java:763)
        at
org.apache.lucene.queryParser.QueryParser.Term(QueryParser.j
ava:1077)
        at
org.apache.lucene.queryParser.QueryParser.Clause(QueryParser
.java:964)
        at
org.apache.lucene.queryParser.QueryParser.Query(QueryParser.
java:892)
        at
org.apache.lucene.queryParser.QueryParser.parse(QueryParser.
java:145)
        at
org.apache.solr.request.DisMaxRequestHandler.handleRequestBo
dy(DisMaxRequestHandler.java:238)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(Req
uestHandlerBase.java:77)
        at
org.apache.solr.core.SolrCore.execute(SolrCore.java:654)
        at
org.apache.solr.servlet.SolrServlet.doGet(SolrServlet.java:6
6)
        at
org.apache.solr.servlet.SolrServlet.doPost(SolrServlet.java:
53)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:616)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder
.java:428)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.
doFilter(WebApplicationHandler.java:830)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDisp
atchFilter.java:137)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.
doFilter(WebApplicationHandler.java:821)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(Web
ApplicationHandler.java:471)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
er.java:568)
        at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebAp
plicationContext.java:633)
        at
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
        at
org.mortbay.http.HttpServer.service(HttpServer.java:909)
        at
org.mortbay.http.HttpConnection.service(HttpConnection.java:
820)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja
va:986)
        at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:8
37)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListe
ner.java:245)
        at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3
57)
        at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5
34)

Mar 29, 2007 1:15:23 PM org.apache.solr.core.SolrCore
execute
INFO: null
wt=ruby&facet.limit=20&rows=25&start=0&facet
=true&facet.mincount=1&fl=*,score&q=(corwell)&am
p;qt=dismax&hl.fl=author_text,full_title_text,pages_text
,description_text,title_text,asin_text&facet.field=publi
sher_facet&facet.field=country_facet&facet.field=gen
re_facet&facet.field=medium_facet&facet.field=publis
hed_year_facet&facet.field=rating


Auto suggest

Mar 29, 2007 1:15:12 PM org.apache.solr.core.SolrCore
execute
INFO: null
facet.limit=5&wt=ruby&rows=0&facet=true&face
t.mincount=1&fl=*,score&q=*&qt=stan
dard&facet.missing=true&facet.field=text&facet.p
refix=cor&facet.sort=true
0 2
Mar 29, 2007 1:15:13 PM org.apache.solr.core.SolrCore
execute
INFO: null
facet.limit=5&wt=ruby&rows=0&facet=true&face
t.mincount=1&fl=*,score&q=*&qt=stan
dard&facet.missing=true&facet.field=text&facet.p
refix=corwe&facet.sort=true
0 3
Mar 29, 2007 1:15:14 PM org.apache.solr.core.SolrCore
execute
INFO: null
facet.limit=5&wt=ruby&rows=0&facet=true&face
t.mincount=1&fl=*,score&q=*&qt=stan
dard&facet.missing=true&facet.field=text&facet.p
refix=corwell&facet.sort=true
0 1



	
	
		
_________________________________________________________
Flyger tiden iväg? Fånga dagen med Yahoo! Mails inbyggda
kalender. Dessutom 250 MB gratis, virusscanning och
antispam. Få den på: http://se.mail.yahoo.com


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )