Re: Field Collapsing (was Re: Schema for group/child entity setup)

2009-09-04 Thread R. Tan
Anybody using it on public site? Would love to see some live examples. On Sat, Sep 5, 2009 at 12:50 AM, R. Tan wrote: > Okay. Thanks for giving an insight on how it works in general. Without > trying it myself, are the field values for the collapsed ones also part of > the results data? > What i

Re: how to create a custom queryparse to handle new functions

2009-09-04 Thread Avlesh Singh
> > You do not need to create a custom query parser for this. You just need to > create a custom function query. Look at one of the existing function queries > in Solr as an example. > This is where the need originates from - http://www.lucidimagination.com/search/document/a4bb0dfee53f7493/how_to_s

Re: Filter query to check for not null filed

2009-09-04 Thread Avlesh Singh
Escape your special characters. q=field:\? and q=field:\- should work fine. Cheers Avlesh On Sat, Sep 5, 2009 at 4:10 AM, Mohamed Parvez wrote: > Say i have 3 fields, named field1,field2 and field3 > > I want to query all records that have "xxx" in field1 and filed3 should not > be null > > I t

stemming plurals

2009-09-04 Thread Joe Calderon
i saw some post regarding stemming plurals in the archives from 2008, i was wondering if this was ever integrated or if custom hackery is still needed, is there something like a stemplurals analyzer is the kstemmer the closest thing? thx much --joe

Filter query to check for not null filed

2009-09-04 Thread Mohamed Parvez
Say i have 3 fields, named field1,field2 and field3 I want to query all records that have "xxx" in field1 and filed3 should not be null I tried 1] q=field1:xxx&fq=? Got an error saying => org.apache.lucene.queryParser.ParseException: Cannot parse 'title:?': '*' or '?' not allowed as first charact

Re: capturing field length into a stored document field

2009-09-04 Thread Grant Ingersoll
The Similarity.lengthNorm() is a callback from Lucene that gives you the information you seek. Of course, the trick still is how to use that. Perhaps you can describe a bit more about why you need that length. On Sep 4, 2009, at 11:34 AM, mike.schultz wrote: For various statistics I co

Re: how to create a custom queryparse to handle new functions

2009-09-04 Thread Shalin Shekhar Mangar
On Sat, Sep 5, 2009 at 2:15 AM, gdeconto wrote: > > Can someone point me in the general direction of how to create a custom > queryparser that would allow me to create custom query commands like this: > > http://localhost:8994/solr/select?q=myfunction(

TermsComponent

2009-09-04 Thread Todd Benge
Hi, I was looking at TermsComponent in Solr 1.4 as a way of building a autocomplete function. I have a prototype working but noticed that terms that have whitespace in them when indexed are absent the whitespace when returned from the TermsComponent. Any ideas on why that may be happening? Am I

how to create a custom queryparse to handle new functions

2009-09-04 Thread gdeconto
Can someone point me in the general direction of how to create a custom queryparser that would allow me to create custom query commands like this: http://localhost:8994/solr/select?q=myfunction(‘Foo’, 3) or point me towards an example? note that the actual functionality of myfunction is not def

Re: how to scan dynamic field without specifying each field in query

2009-09-04 Thread gdeconto
Thanks Avlesh. I was only thinking of something 'like' function queries (since they appeared to have similar behavior). Agree that custom QueryParser is looking like my only choice. Now have to figure out how to do that :-) Avlesh Singh wrote: > > I don't think you need function queries her

dismax matches & ranking

2009-09-04 Thread ram_sj
Hi I have following questions about dismax query handler? someone can clarify me about it. 1. dismax query handler and filter query (fq) if query= coffee , fq= yiw_bus_city: san jose, I get 0 results for this query again, but this one works fine, If mention qt=standard query handler 2. dismax

Re: Schema for group/child entity setup

2009-09-04 Thread Avlesh Singh
> > But, as I've discovered the field collapsing feature recently (although I > haven't tested it), can't it solve this requirement? > >From the top of my head, no. The answer might change on deep thinking. It is one of the most popular features which is yet to be incorporated into Solr. Cheers Av

Re: Schema for group/child entity setup

2009-09-04 Thread R. Tan
Hmmm, interesting solution. But, as I've discovered the field collapsing feature recently (although I haven't tested it), can't it solve this requirement? On Sat, Sep 5, 2009 at 1:14 AM, Avlesh Singh wrote: > Well you are talking about a very relational behavior, Tan. > You can declare a "locati

Re: Schema for group/child entity setup

2009-09-04 Thread Avlesh Singh
Well you are talking about a very relational behavior, Tan. You can declare a "locations" and "location_*" field in your schema. While indexing a document, put all the locations inside the field "locations". Populate "location_state", "location_city" etc .. with their corresponding location values.

Re: Return 2 fields per facet.. name and id, for example? / facet value search

2009-09-04 Thread R. Tan
Thanks. I guess it will have to be the workaround then. On Thu, Sep 3, 2009 at 3:34 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Fri, Aug 28, 2009 at 12:57 AM, Rihaed Tan > wrote: > > > Hi, > > > > I have a similar requirement to Matthew (from his post 2 years ago). Is > > thi

Re: Field Collapsing (was Re: Schema for group/child entity setup)

2009-09-04 Thread R. Tan
Okay. Thanks for giving an insight on how it works in general. Without trying it myself, are the field values for the collapsed ones also part of the results data? What is the latest build that is safe to use on a production environment? I'd probably go for that and use field collapsing. Thank you

Re: Schema for group/child entity setup

2009-09-04 Thread R. Tan
I can't because there are facet values for each location, such as state/city/neighborhood and facilities. Example result is "7 Eleven", 100 locations when no location filters are applied, where there is a filter for state, it should show "7 Eleven, 20 locations. On Fri, Sep 4, 2009 at 11:57 PM, Aa

capturing field length into a stored document field

2009-09-04 Thread mike.schultz
For various statistics I collect from an index it's important for me to know the length (measured in tokens) of a document field. I can get that information to some degree from the "norms" for the field but a) the resolution isn't that great, and b) more importantly, if boosts are used it's almos

Re: how to scan dynamic field without specifying each field in query

2009-09-04 Thread Avlesh Singh
> > I dont have that answer as I was asking a general question, not one for a > specific situation I am encountering). > I can understand :) what I am essentially asking for is: is there a short, simple and generic > method/technique to deal with large numbers of dynamic fields (rather than > havi

Re: how to scan dynamic field without specifying each field in query

2009-09-04 Thread gdeconto
I dont have that answer as I was asking a general question, not one for a specific situation I am encountering). what I am essentially asking for is: is there a short, simple and generic method/technique to deal with large numbers of dynamic fields (rather than having to specify each and every te

Re: how to scan dynamic field without specifying each field in query

2009-09-04 Thread Aakash Dharmadhikari
what all other searches you would like to perform on these fields? >From the proposed function definition I believe that when foo*:3 is to be searched all foo* would be searched and none are to be excluded. Assuming that this is the only search that are to be performed on these fields, we might de

Re: Schema for group/child entity setup

2009-09-04 Thread Aakash Dharmadhikari
can't you store the locations as part of the parent listing while storing. This way there would be only one document per parent listing. And all the locations related information can be multi valued attributes per property or any other way depending on the attributes. 2009/9/3 R. Tan > Hi Solrer

Re: Solr, JNDI config, dataDir, and solr home problem

2009-09-04 Thread Archon810
OK, so I can't access it by ${solr.home}, but is there a way to access it? After all, it's a variable defined in JNDI, shouldn't there be a way to refer to it? Also, what about the INFO message that says it can't find /solr/home, while the instructions refer to solr/home ? Noble Paul നോബിള്‍

Re: Facet search field returning results on split words

2009-09-04 Thread Avlesh Singh
Your field needs to be untokenized for expected results. Faceting on the "text" field that you use to search will give you facets like these. You can index the same data in some other "string" field and facet on that field. PS: You can use to copy data during index time from one field to other.

Re: Solr, JNDI config, dataDir, and solr home problem

2009-09-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
${solr.home} is used for documentation purpose. It is not set as a variable. On Fri, Sep 4, 2009 at 3:58 PM, Archon810 wrote: > > I saw it being used in the default solrconfig.xml in this phrase: > If you wish to hide files under ${solr.home}/conf, explicitly register the > ShowFileRequestHandler

Re: Exact Word Search

2009-09-04 Thread Shalin Shekhar Mangar
On Fri, Sep 4, 2009 at 6:06 PM, bhaskar chandrasekar wrote: > > Hi, > > > I have integrated Solr with Carrot2 Cluster Engine (v 3.1.0). > > Carrot2 is used as a presentation layer. Carrot2 sends requested query to > external source (Solr) and get results from Solr. > Carrot2 may not be responsible

Facet search field returning results on split words

2009-09-04 Thread EwanH
Hi I have a solr search where a particular field named "location" is a place name. I have the field indexed and stored. It is quite likely that a field value could comprise more than one term or at least 2 words split by a space such as "Burnham Market". Now if I search on "location:burnham" I

Re: Exact Word Search

2009-09-04 Thread bhaskar chandrasekar
Hi,   I have integrated Solr with Carrot2 Cluster Engine (v 3.1.0).   Carrot2 is used as a presentation layer. Carrot2 sends requested query to external source (Solr) and get results from Solr. Carrot2 may not be responsible for forming Query. It would have been handled from Solr end.

Re: Solr, JNDI config, dataDir, and solr home problem

2009-09-04 Thread Archon810
I saw it being used in the default solrconfig.xml in this phrase: If you wish to hide files under ${solr.home}/conf, explicitly register the ShowFileRequestHandler using... It was only natural to assume it would work for something as trivial as dataDir. So, there's no way to refer to the solr/ho

Re: Solr, JNDI config, dataDir, and solr home problem

2009-09-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
it is nowhere mentioned that you can use a variable ${solr.home} in your solrconfig.xml. There is a bug related to this issue https://issues.apache.org/jira/browse/SOLR-1267 On Fri, Sep 4, 2009 at 5:47 AM, Archon810 wrote: > > Here's my problem. > > I'm trying to follow a multi Solr setup, straigh

Re: Exact Word Search

2009-09-04 Thread bhaskar chandrasekar
  Hi Shalin,   Where on in which file should i set the values you have mentioned?. Let me know how to set it.   Regards Bhaskar --- On Fri, 9/4/09, Shalin Shekhar Mangar wrote: From: Shalin Shekhar Mangar Subject: Re: Exact Word Search To: solr-user@lucene.apache.org Date: Friday, September 4,

Re: Exact Word Search

2009-09-04 Thread Shalin Shekhar Mangar
If you want to do a exact match (case sensitive) in Solr, you should have a string type field and the query should be made as fieldname:value However, reading your mail I get the feeling that the query is actually being made by Carrot2. On Fri, Sep 4, 2009 at 7:41 AM, bhaskar chandrasekar wrote:

Re: Problem querying for a value with a "space"

2009-09-04 Thread Shalin Shekhar Mangar
On Fri, Sep 4, 2009 at 6:40 AM, Chris Hostetter wrote: > > : Use +specific_LIST_s:(For Sale) > : or > : +specific_LIST_s:"For Sale" > > those are *VERY* different queries. > > The first is just syntac sugar for... > +specific_LIST_s:For +specific_LIST_s:Sale > > ...which is not the same as the se

Re: Single Core or Multiple Core?

2009-09-04 Thread Shalin Shekhar Mangar
On Fri, Sep 4, 2009 at 4:35 AM, Jonathan Ariel wrote: > It seems like it is really hard to decide when the Multiple Core solution > is > more appropriate.As I could understand from this list and wiki the Multiple > Core feature was designed to address the need of handling different sets of > data