RE: Hierarchical faceting

2014-11-18 Thread Appaneravanda, Rashmy
-user@lucene.apache.org Subject: Re: Hierarchical faceting >I'm looking to see if Solr has any in-built tokenizer that splits the tokens >and prepends with the depth information. I'd like to avoid building >depth information into the filed values if Solr already has something >tha

Re: Hierarchical faceting

2014-11-17 Thread Evan Pease
>I'm looking to see if Solr has any in-built tokenizer that splits the tokens >and prepends with the depth information. I'd like to avoid building depth >information into the filed values if Solr already has something that can be >used. So the goal is to find out the level of the tree for each cat

Re: Hierarchical faceting

2014-11-17 Thread Jason Hellman
I realize you want to avoid putting depth details into the field values, but something has to imply the depth. So with that in mind, here is another approach (with the assumption that you are chasing down a single branch of a tree (and all its subbranch offshoots)), Use dynamic fields Step fro

Re: Hierarchical faceting

2014-11-17 Thread Alexandre Rafalovitch
You might be able to stick in a couple of PatternReplaceFilterFactory in a row with regular expressions to catch different levels. Something like: ... I did not test this, you may need to escape some thing or put explicit groups in there. Regards, Alex. P.s. http://www.solr-start.com/java

Re: Hierarchical faceting

2014-11-17 Thread rashmy1
Hi Alexandre, Yes, I've read this post and that's the 'Option1' listed in my initial post. I'm looking to see if Solr has any in-built tokenizer that splits the tokens and prepends with the depth information. I'd like to avoid building depth information into the filed values if Solr already has so

Re: Hierarchical faceting

2014-11-16 Thread Alexandre Rafalovitch
Would this approach be an answer? https://lucidworks.com/blog/easy-hierarchical-faceting-and-display-with-solr-and-jquery-and-a-tiny-bit-of-python/ Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resources and newsletter: http://www.solr-start.com/ and @solrstart Solr

Re: Hierarchical faceting

2014-11-16 Thread rashmy1
Thank you Evan and Oleg. This is exactly what I had implemented (Option 2). My issue is Evan Pease wrote > Then, in your Solr query, you can simply add: > > &facet=true > &facet.field=category > > You should see a facet that contains each level of the taxonomy with > counts. As you mentioned,

Re: Hierarchical faceting

2014-11-14 Thread Evan Pease
Hi Rashmi, Here is some more details on how to use PathHierarchyTokenizer that Oleg provided the link to. If this is your document: > *Sample document* > > name=Pbook1 > category=NonFic/Sci/Phy/Quantum > author=ABC > price=20.00 > Then, in your schema.xml:

Re: Hierarchical faceting

2014-11-14 Thread Oleg Savrasov
Hi Rashmi, I believe you are looking for PathHierarchyTokenizer, see https://lucene.apache.org/core/4_0_0/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTokenizer.html Oleg 2014-11-14 17:53 GMT-05:00 rashmy1 : > Hello, > I'm trying to setup Solr for fetching hierarchical facets.

Re: Hierarchical Faceting

2013-05-16 Thread varsha.yadav
Hi, Thanks Upayavira . But still i am not getting results well. I have been followinghttp://wiki.apache.org/solr/HierarchicalFaceting I have hierarchical data for facet . Some documents also have multiple hierarchy. like : Doc#1 London > UK > 51.5 Doc#2 UK >54.0 Doc#3 Indiana > United States >

Re: Hierarchical Faceting

2013-05-15 Thread Chris Hostetter
: Subject: Hierarchical Faceting : References: : <15062_1368600769_zzi0n0aykpk6h.00_519330be.7000...@uni-bielefeld.de> : In-Reply-To: : <15062_1368600769_zzi0n0aykpk6h.00_519330be.7000...@uni-bielefeld.de> https://people.apache.org/~hossman/#threadhijack Thread Hijacking on Mailing Lists

Re: Hierarchical Faceting

2013-05-15 Thread Upayavira
Can't you use the PathHierarchyTokenizerFactory mentioned on that page? I think it is called descendent-path in the default schema. Won't that get you what you want? UK/London/Covent Garden becomes UK UK/London UK/London/Covent Garden and India/Maharastra/Pune/Dapodi becomes India

Re: Hierarchical Faceting

2013-05-15 Thread varsha.yadav
Hi I go through that but i want to index multiple location in single document and a single location have multiple feature/attribute like country,state,district etc. I want Index and want hierarchical facet result on facet pivot query. One more thing , my document varies may have single ,two

Re: Hierarchical Faceting

2013-05-15 Thread Upayavira
http://wiki.apache.org/solr/HierarchicalFaceting On Wed, May 15, 2013, at 09:44 AM, varsha.yadav wrote: > Hi Everyone, > > I am working on Hierarchical Faceting. I am indexing location of > document with their state and district. > I would like to find counts of every country with state count

Re: Hierarchical faceting and filter query exclusions

2012-08-30 Thread Nicholas Swarr
Tanguy, thanks for the confirmation! We found the same issue with facet.missing parameter as well. Sent from my iPad On Aug 30, 2012, at 10:18 AM, "Tanguy Moal" wrote: > You are correct, it doesn't work : > > Queries like : > http://localhost:8983/solr/collection1/select?q=*:*&facet=on&face

Re: Hierarchical faceting and filter query exclusions

2012-08-30 Thread Tanguy Moal
You are correct, it doesn't work : Queries like : http://localhost:8983/solr/collection1/select?q=*:*&facet=on&facet.pivot={!ex=a_tag}field1,field2&facet.limit=5&rows=0&fq={!tag=a_tag}field3:"filter"; result in the following response : 400 1 on *:* 5 {!ex=a_tag}field1,field

Re: Hierarchical faceting and filter query exclusions

2012-08-30 Thread Nicholas Swarr
Thanks, Erick. I have looked at the documentation at length and done a number of tests. I don't see a way to do exclusions with hierarchical facets. Thanks, Nick On Aug 29, 2012, at 9:50 PM, "Erick Erickson" wrote: > See "Tagging and excluding filters" here: > http://lucidworks.lucidimagina

Re: Hierarchical faceting and filter query exclusions

2012-08-29 Thread Erick Erickson
See "Tagging and excluding filters" here: http://lucidworks.lucidimagination.com/display/solr/Faceting Best Erick On Wed, Aug 29, 2012 at 11:44 AM, Nicholas Swarr wrote: > We're using Solr 4.0 Beta, testing the hierarchical faceting support to see > if it's a good fit to facet on taxonomies.

Re: hierarchical faceting?

2012-05-01 Thread sam ”
yup. and ?facet.field=colors_facet On Mon, Apr 30, 2012 at 9:35 PM, Chris Hostetter wrote: > > : Is there a tokenizer that tokenizes the string as one token? > > Using KeywordTokenizer at query time should

Re: hierarchical faceting?

2012-04-30 Thread Chris Hostetter
: Is there a tokenizer that tokenizes the string as one token? Using KeywordTokenizer at query time should do whta you want. -Hoss

Re: hierarchical faceting?

2012-04-18 Thread Charlie Maroto
org Subject: Re: hierarchical faceting? Put the parent term in all the child documents at index time and the re-issue the facet query when you expand the parent using the parent's term. works perfect. On Wed, 2012-04-18 at 10:56 -0400, sam ” wrote: > I have hierarchical colors: > store

Re: hierarchical faceting?

2012-04-18 Thread Darren Govoni
I don't use any of that stuff in my app, so not sure how it works. I just manage my taxonomy outside of solr at index time and don't need any special fields or tokenizers. I use a string field type and insert the proper field at index time and query it normally. Nothing special required. On Wed,

Re: hierarchical faceting?

2012-04-18 Thread sam ”
It looks like TextField is the problem. This fixed: I am assuming the text_path fields won't include whitespace characters. ?q=colors:red/pink ==> Doc2 (Doc1, which has colors = red isn't included!) Is there a tokenizer that tokeniz

Re: hierarchical faceting?

2012-04-18 Thread sam ”
Yah, that's exactly what PathHierarchyTokenizer does. I think I have a query time tokenizer that tokenizes at / ?q=colors:red ==> Doc1, Doc2 ?q=colors:redfoobar ==> ?q=colors:red/foobarasdfoaijao ==> Doc1, Doc2 On Wed, Apr 18, 2012 at 11:10 AM, Darren Govoni

Re: hierarchical faceting?

2012-04-18 Thread Darren Govoni
Put the parent term in all the child documents at index time and the re-issue the facet query when you expand the parent using the parent's term. works perfect. On Wed, 2012-04-18 at 10:56 -0400, sam ” wrote: > I have hierarchical colors: > stored="true" multiValued="true"/> > text_path is TextFi

Re: Hierarchical faceting with solr 1.4 version

2012-02-01 Thread Erick Erickson
Well, a lot depends on how you need to query. The simplest would be to store triplets MSA/Area/Hood, that is denormalize the data and store each. If you used a multiValued field to store it, you could do some tricky dancing with positionIncrementGap to insure that matches occurred as you wish. But

Re: Hierarchical faceting in UI

2012-01-31 Thread Chris Hostetter
I'm not really following your specific example, but a worked through example of the "index full breadcrumb" type approach darren was suggesting for doing drill down i na hierarchy is described in slides 32-35 of this presentation (which was recorded as a webcast)... http://people.apache.org/%7

Re: Hierarchical faceting in UI

2012-01-31 Thread Chris Hostetter
: References: : : Message-ID: <1327357980.36539.yahoomail...@web160302.mail.bf1.yahoo.com> : Subject: Hierarchical faceting in UI https://people.apache.org/~hossman/#threadhijack Thread Hijacking on Mailing Lists When starting a new discussion on a mailing list, please do not reply to an e

Re: Hierarchical faceting in UI

2012-01-24 Thread Yuhao
iosclerosis". > > I'm having trouble figuring out how I can get the complete path per above to > add to the URL of each facet term.  I know "velocity/facet_field.vm" is where > I build the URL.  I know how to simply add a "parent:" filter to the > URL.  But

Re: Hierarchical faceting in UI

2012-01-24 Thread Darren Govoni
d the URL. I know how to simply add a "parent:" filter to the URL. But I don't know how to access a document field, like the complete parent path, in "facet_field.vm". Any help would be great. Yuhao From: "dar...@ontrenet.com&

Re: Hierarchical faceting in UI

2012-01-24 Thread Yuhao
arent path, in "facet_field.vm".  Any help would be great. Yuhao From: "dar...@ontrenet.com" To: Yuhao Cc: solr-user@lucene.apache.org Sent: Monday, January 23, 2012 7:16 PM Subject: Re: Hierarchical faceting in UI On Mon, 23 Jan 2012 14:33:00 -0800 (PST), Yuhao

Re: Hierarchical faceting in UI

2012-01-23 Thread Johannes Goll
another way is to store the original hierarchy in a sql database (in the form: id, parent_id, name, level) and in the Lucene index store the complete hierarchy (from root to leave node) for each document in one field using the ids of the sql database. In that way you can get documents at any level

Re: Hierarchical faceting in UI

2012-01-23 Thread darren
On Mon, 23 Jan 2012 14:33:00 -0800 (PST), Yuhao wrote: > Programmatically, something like this might work: for each facet field, > add another hidden field that identifies its parent.  Then, program > additional logic in the UI to show only the facet terms at the currently > selected level.  For

Re: Hierarchical faceting with Date

2011-10-07 Thread Erik Hatcher
Ravi - It's not a feature, currently, of pivot facets to do date ranges along with it. Is that what you're after? It should still "work" to facet on date fields and pivot those with other fields in a standard per-value sort of way. Can you elaborate on the specific data and results you'd like

Re: Hierarchical faceting with Date

2011-10-05 Thread pravesh
You count index the date as a text field(or use a new text field to store date as text) and then try it on this new field Thanx Pravesh -- View this message in context: http://lucene.472066.n3.nabble.com/Hierarchical-faceting-with-Date-tp3394521p3395824.html Sent from the Solr - User mailing lis

Re: hierarchical faceting in Solr?

2011-08-24 Thread Alexei Martchenko
Cheers, very good, congratulations 2011/8/23 Naomi Dushay > Chris Beer just did a revamp of the wiki page at: > > > http://wiki.apache.org/solr/**HierarchicalFaceting > > Yay Chris! > > - Naomi > (" ... and I helped!") > > > On Aug 22, 2011, at

Re: hierarchical faceting in Solr?

2011-08-23 Thread Naomi Dushay
Chris Beer just did a revamp of the wiki page at: http://wiki.apache.org/solr/HierarchicalFaceting Yay Chris! - Naomi (" ... and I helped!") On Aug 22, 2011, at 10:49 AM, Naomi Dushay wrote: Chris, Is there a document somewhere on how to do this? If not, might you create one? I coul

Re: hierarchical faceting in Solr?

2011-08-22 Thread Bill Bell
Naomi, Just create a login and update it!! On 8/22/11 12:27 PM, "Erick Erickson" wrote: >Try searching the Solr user's list for "hierarchical", this topic >has been discussed numerous times. > >It would be great if you could collate the various solutions >and update the wiki, all you have to d

Re: hierarchical faceting in Solr?

2011-08-22 Thread Erick Erickson
Try searching the Solr user's list for "hierarchical", this topic has been discussed numerous times. It would be great if you could collate the various solutions and update the wiki, all you have to do is create a login... Best Erick On Mon, Aug 22, 2011 at 1:49 PM, Naomi Dushay wrote: > Chris,

Re: hierarchical faceting, SOLR-792 - confused on config

2011-03-17 Thread Erik Hatcher
On Mar 16, 2011, at 14:53 , Jonathan Rochkind wrote: > Interesting, any documentation on the PathTokenizer anywhere? Or just have to > find and look at the source? That's something I hadn't known about, which may > be useful to some stuff I've been working on depending on how it works.

Re: hierarchical faceting, SOLR-792 - confused on config

2011-03-17 Thread Erik Hatcher
r [erik.hatc...@gmail.com] > Sent: 16 March 2011 17:36 > To: solr-user@lucene.apache.org > Subject: Re: hierarchical faceting, SOLR-792 - confused on config > > Sorry, I missed the original mail on this thread > > I put together that hierarchical faceting wiki page a couple

Re: hierarchical faceting, SOLR-792 - confused on config

2011-03-17 Thread Toke Eskildsen
On Wed, 2011-03-16 at 18:36 +0100, Erik Hatcher wrote: > Sorry, I missed the original mail on this thread > > I put together that hierarchical faceting wiki page a couple > of years ago when helping a customer evaluate SOLR-64 vs. > SOLR-792 vs.other approaches. Since then, SOLR-792 morphed >

Re: hierarchical faceting, SOLR-792 - confused on config

2011-03-16 Thread Koji Sekiguchi
(11/03/17 3:53), Jonathan Rochkind wrote: Interesting, any documentation on the PathTokenizer anywhere? It is PathHierarchyTokenizer: https://hudson.apache.org/hudson/job/Solr-trunk/javadoc/org/apache/solr/analysis/PathHierarchyTokenizerFactory.html Koji -- http://www.rondhuit.com/en/

RE: hierarchical faceting, SOLR-792 - confused on config

2011-03-16 Thread McGibbney, Lewis John
branch Thank you Lewis From: Erik Hatcher [erik.hatc...@gmail.com] Sent: 16 March 2011 17:36 To: solr-user@lucene.apache.org Subject: Re: hierarchical faceting, SOLR-792 - confused on config Sorry, I missed the original mail on this thread I put

Re: hierarchical faceting, SOLR-792 - confused on config

2011-03-16 Thread Jonathan Rochkind
unaccurate by some way! Any comments please Lewis From: kmf [kfole...@gmail.com] Sent: 23 February 2011 17:10 To: solr-user@lucene.apache.org Subject: Re: hierarchical faceting, SOLR-792 - confused on config I'm really confused now. Is this page completely out of

Re: hierarchical faceting, SOLR-792 - confused on config

2011-03-16 Thread Erik Hatcher
ate by some way! > > Any comments please > Lewis > > From: kmf [kfole...@gmail.com] > Sent: 23 February 2011 17:10 > To: solr-user@lucene.apache.org > Subject: Re: hierarchical faceting, SOLR-792 - confused on config > >

RE: hierarchical faceting, SOLR-792 - confused on config

2011-03-16 Thread McGibbney, Lewis John
e way! Any comments please Lewis From: kmf [kfole...@gmail.com] Sent: 23 February 2011 17:10 To: solr-user@lucene.apache.org Subject: Re: hierarchical faceting, SOLR-792 - confused on config I'm really confused now. Is this page completely out of d

Re: hierarchical faceting, SOLR-792 - confused on config

2011-02-23 Thread kmf
I'm really confused now. Is this page completely out of date - http://wiki.apache.org/solr/HierarchicalFaceting - as it seems to imply that solr-792 is a form of hierarchical faceting. "There are currently two similar, non-competing, approaches to generating tree/hierarchical facets from Solr: SO

Re: hierarchical faceting, SOLR-792 - confused on config

2011-02-22 Thread Koji Sekiguchi
(11/02/23 8:26), kmf wrote: I'm using solr 4.0 and trying to implement a hierarchical faceting example. The example I'm trying to implement is taken from the webcast "Mastering the Power of Faceted Search." (http://www.lucidimagination.com/solutions/webcasts/faceting) Around minute 30, Chris Ho

Re: Hierarchical faceting

2010-08-13 Thread John Wang
Check out project Bobo: http://sna-projects.com/bobo/ A lucene based faceted search library. Now with solr plugin: http://snaprojects.jira.com/wiki/display/BOBO/Bobo+Solr+Plugin -John On Fri, Aug 13, 2010 at 8:56 PM, Jayendra Patil < jayendra.patil@gmail.com> wrote: > Multiple values are p

Re: Hierarchical faceting

2010-08-13 Thread Jayendra Patil
Multiple values are probably same as Multiple Tokens with a high position increment gap. Would still prefer to go with the multivalued field approach, as it is inbuilt and easier to get back the individual facets with the count in the response. Regards, Jayendra On Fri, Aug 13, 2010 at 7:57 AM, M

Re: Hierarchical faceting

2010-08-13 Thread Mats Bolstad
Thank you for your answer. I sure will implement something in that direction. But couldn't multiple tokens be used instead of multiple values? // some tokenizer and filters that generates "0//Europe", "1//Europe//Norway", "2//Europe//Norway//Oslo" Wouldn't that work in just the sam

Re: Hierarchical faceting

2010-08-12 Thread Jayendra Patil
We were able to get the hierarchy faceting working with a work around approach. e.g. if you have Europe//Norway//Oslo as an entry 1. Create a new multivalued field with string type 2. Index the field for "Europe//Norway//Oslo" with values 0//Europe 1//Europe//Norway 2//Europe//Norway//Oslo 3

Re: hierarchical faceting discussion

2009-07-20 Thread Erik Hatcher
I was particularly surprised by the SOLR-64 numbers. What makes it's response so huge (and thus slow) to return the entire tree of facet counts? Erik On Jul 19, 2009, at 5:35 PM, Erik Hatcher wrote: I've posted the details of some experiments I just did comparing/ contrasting two

RE: Hierarchical Faceting

2008-10-26 Thread Sachit P. Menon
er 26, 2008 11:43 PM To: solr-user@lucene.apache.org Subject: Re: Hierarchical Faceting : Suppose, I have 3 categories like politics, science and sports. In the : schema, I am defining a field type called 'Category'. I don't have a sub : category field type (and don't want to ha

Re: Hierarchical Faceting

2008-10-26 Thread Chris Hostetter
: Suppose, I have 3 categories like politics, science and sports. In the : schema, I am defining a field type called 'Category'. I don't have a sub : category field type (and don't want to have one). Now, Cricket and : Football are some categories which can be considered to be under sports. :

Re: Hierarchical Faceting

2008-10-22 Thread Marian Steinbach
On Tue, Oct 21, 2008 at 3:59 PM, Sachit P. Menon <[EMAIL PROTECTED]> wrote: > Hi, > > I have gone through the archive in search of Hierarchical Faceting but was > not clear as what should I exactly do to achieve that. > > Suppose, I have 3 categories like politics, science and sports. In the > sc