antonio_eggberg at yahoo
Mar 22, 2007, 5:54 PM
Post #6 of 6
--- Erik Hatcher <erik [at] ehatchersolutions> skrev:
SV: Re: SV: Re: SV: Re: SV: Re: Simple Web Interface
[In reply to]
> 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
&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
- 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
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