I cant get it to work

2009-12-15 Thread Faire Mii
I just cant get it. If i got 10 tables in mysql and they are all related to eachother with foreign keys. Should i have 10 documents in solr? or just one document with rows from all tables in it? i have tried in vain for 2 days now...plz help regards fayer

Log of zero result searches

2009-12-15 Thread Roland Villemoes
Hi Question: How do you log zero result searches? I quite important from a business perspective to know what searches that returns zero/empty results. Does anybody know a way to get this information? Roland Villemoes

Re: I cant get it to work

2009-12-15 Thread David Stuart
Hi, The answer is it depends ;) If your 10 tables represent an entity e.g a person their address etc the one document entity works But if your 10 tables each represnt a series of entites that you want to surface in your search results separately then make a document for each (I.e it

Re: Log of zero result searches

2009-12-15 Thread David Stuart
The returning XML result tag has a numFound attribute that will report 0 if nothing matches your search criteria David On 15 Dec 2009, at 08:16, Roland Villemoes r...@alpha-solutions.dk wrote: Hi Question: How do you log zero result searches? I quite important from a business

SV: Log of zero result searches

2009-12-15 Thread Roland Villemoes
Yes, correct. But to use that - the search client must collect this information whenever we have 0 results. I do not want that to be part of the client application (quite hard when that is SolrJS) - this should be collected server site - on Solr. Do you know how to do that? Roland

Re: Document model suggestion

2009-12-15 Thread Shalin Shekhar Mangar
On Tue, Dec 15, 2009 at 7:26 AM, caman aboxfortheotherst...@gmail.comwrote: Appreciate any guidance here please. Have a master-child table between two tables 'TA' and 'TB' where form is the master table. Any row in TA can have multiple row in TB. e.g. row in TA id---name 1---tweets TB:

Re: Not able to display search results on Tomcat/Solrj

2009-12-15 Thread Shalin Shekhar Mangar
On Tue, Dec 15, 2009 at 1:07 AM, insaneyogi3008 insaney...@gmail.comwrote: Hello, I am running a simple prg http://old.nabble.com/file/p26779970/SolrjTest.java SolrjTest.java to get search results from a remote Solr server , I seem to correctly get back the number of documents that match

Re: Query on Cache size.

2009-12-15 Thread Shalin Shekhar Mangar
On Mon, Dec 14, 2009 at 7:17 PM, kalidoss kalidoss.muthuramalin...@sifycorp.com wrote: Hi, We have enabled the query result cache, its 512 entries, we have calculated the size used for cache : page size about 1000bytes, (1000*512)/1024/1024 = .48MB The query result cache is a

Re: Auto update with deltaimport

2009-12-15 Thread Olala
Hi, thanks! I've done it by wrote a scripts to call http://localhost:8080/solr/dataimport?command=delta-import automatically:-) Joel Nylund wrote: windows or unix? unix - make a shell script and call it from cron windows - make a .bat or .cmd file and call it from scheduler within

maximum no of values in multi valued string field

2009-12-15 Thread bharath venkatesh
Hi , Is there any limit in no of values stored in a single multi valued string field ? if a single multi valued string field contains 1000-2000 string values what will be effect on query performance (we will be only indexing this field not storing it ) ? is it better to store all the

Re: maximum no of values in multi valued string field

2009-12-15 Thread Shalin Shekhar Mangar
On Tue, Dec 15, 2009 at 3:13 PM, bharath venkatesh bharath.venkat...@ibibogroup.com wrote: Hi , Is there any limit in no of values stored in a single multi valued string field ? There is no limit theoretical limit. There are practical limits because your documents are heavier. The

Re: I cant get it to work

2009-12-15 Thread regany
I've only just started with Solr too. As a newbie, first I'd say forget about trying to compare it to your mysql database. It's completely different and performs it's own job in it's own way. You feed a document in, and you store that information in the most efficient manner you can to perform

Re: Log of zero result searches

2009-12-15 Thread Shalin Shekhar Mangar
On Tue, Dec 15, 2009 at 2:36 PM, Roland Villemoes r...@alpha-solutions.dkwrote: Yes, correct. But to use that - the search client must collect this information whenever we have 0 results. I do not want that to be part of the client application (quite hard when that is SolrJS) - this should

Re: question regarding dynamic fields

2009-12-15 Thread Shalin Shekhar Mangar
On Mon, Dec 14, 2009 at 1:00 PM, Phanindra Reva reva.phanin...@gmail.comwrote: Hello.., I have observed that the text or keywords which are being indexed using dynamicField concept are being searchable only when we mention field name too while querying.Am I wrong with my

Re: Payloads with Phrase queries

2009-12-15 Thread Raghuveer Kancherla
The interesting thing I am noticing is that the scoring works fine for a phrase query like solr rocks. This lead me to look at what query I am using in case of a single term. Turns out that I am using PayloadTermQuery taking a cue from solr-1485 patch. I changed this to BoostingTermQuery (i read

search in all fields for multiple values?

2009-12-15 Thread Faire Mii
i have two fields: title body and i want to search for two words dog OR cat in each of them. i have tried q=*:dog OR cat but it doesnt work. how should i type it? PS. could i enter default search field = ALL fields in schema.xml in someway?

Re: search in all fields for multiple values?

2009-12-15 Thread Shalin Shekhar Mangar
On Tue, Dec 15, 2009 at 5:35 PM, Faire Mii faire@gmail.com wrote: i have two fields: title body and i want to search for two words dog OR cat in each of them. i have tried q=*:dog OR cat but it doesnt work. how should i type it? PS. could i enter default search field = ALL

solr php client vs file_get_contents?

2009-12-15 Thread Faire Mii
i am using php to access solr and i wonder one thing. why should i use solr php client when i can use $serializedResult = file_get_contents('http://localhost:8983/solr/ select?q=niklaswt=phps'); to get the result in arrays and then print them out? i dont really get the difference. is there

Re: solr php client vs file_get_contents?

2009-12-15 Thread Israel Ekpo
On Tue, Dec 15, 2009 at 8:49 AM, Faire Mii faire@gmail.com wrote: i am using php to access solr and i wonder one thing. why should i use solr php client when i can use $serializedResult = file_get_contents('http://localhost:8983/solr/ select?q=niklaswt=phps'); to get the result in

Re: solr php client vs file_get_contents?

2009-12-15 Thread Donovan Jimenez
In the end, the PHP client does a file_get_contents for doing a search the same way you'd do it manually. It's all PHP, so you can do anything it does yourself. It provides what any library of PHP classes should - convenience. I use the JSON response writer because it gets the most

Re: Payloads with Phrase queries

2009-12-15 Thread Bill Au
Lucene 2.9.1 comes with a PayloadTermQuery: http://lucene.apache.org/java/2_9_1/api/all/org/apache/lucene/search/payloads/PayloadTermQuery.html I have been using that to use the payload as part of the score without any problem. Bill On Tue, Dec 15, 2009 at 6:31 AM, Raghuveer Kancherla

Re: Document model suggestion

2009-12-15 Thread caman
Shalin, Thanks. much appreciated. Question about: That is usually what people do. The hard part is when some documents are shared across multiple users. What do you recommend when documents has to be shared across multiple users? Can't I just multivalue a field with all the users who has

Re: Document model suggestion

2009-12-15 Thread Erick Erickson
Yes, that should work. One hard part is what happens if your authorization model has groups, especially when membership in those groups changes. Then you have to go in and update all the affected docs. FWIW Erick On Tue, Dec 15, 2009 at 12:24 PM, caman aboxfortheotherst...@gmail.comwrote:

Re: Document model suggestion

2009-12-15 Thread caman
Erick, I know what you mean. Wonder if it is actually cleaner to keep the authorization model out of solr index and filter the data at client side based on the user access rights. Thanks all for help. Erick Erickson wrote: Yes, that should work. One hard part is what happens if your

Exception from Spellchecker

2009-12-15 Thread Rafael Pappert
Hello List, I try to enable the spellchecker in my 1.4.0 solr (running with tomcat 6 on debian). But I always get the following exception, when I try to open http://localhost:8080/spell?: HTTP Status 500 - null java.lang.NullPointerException at

Re: Exception from Spellchecker

2009-12-15 Thread Sascha Szott
Hi Rafael, Rafael Pappert wrote: I try to enable the spellchecker in my 1.4.0 solr (running with tomcat 6 on debian). But I always get the following exception, when I try to open http://localhost:8080/spell?: The spellcheck=true pair is missing in your request. Try

facet.field problem in SolrParams to NamedList

2009-12-15 Thread Nestor Oviedo
Hi! I wrote a subclass of DisMaxQParserPlugin to add a little filter for processing the q param and generate a fq param. Ej.: q=something field:value becomes q=something valuefq=field:value To do this, in the createParser method, I apply a regular expression to the qstr param to obtain the fq

Re: Using lucenes custom filters in solr

2009-12-15 Thread pavan kumar donepudi
Hi All, I have a custom filter for lucene ,Can anyone help me how to use this in SOLR. Thanks in advance, Pavan

Can solr web site have multiple versions of online API doc?

2009-12-15 Thread Teruhiko Kurosaka
Lucene keeps multiple versions of its API doc online at http://lucene.apache.org/java/X_Y_Z/api/all/index.html for version X.Y.Z. I am finding this very useful when comparing different versions. This is also good because the javadoc comments that I write for my software can reference the API

Re: Using lucenes custom filters in solr

2009-12-15 Thread AHMET ARSLAN
Hi All,       I have a custom filter for lucene ,Can anyone help me how to use this in SOLR. http://wiki.apache.org/solr/SolrPlugins#Tokenizer_and_TokenFilter http://wiki.apache.org/solr/SolrPlugins#Analyzer

synonyms

2009-12-15 Thread Peter A. Kirk
Hi It appears that Solr reads a synonym list at startup from a text file. Is it possible to alter this behaviour so that Solr obtains the synonym list from a database instead? Thanks, Peter

wildcard oddity

2009-12-15 Thread Joe Calderon
im trying to do a wild card search q:item_title:(gets*)returns no results q:item_title:(gets)returns results q:item_title:(get*)returns results seems like * at the end of a token is requiring a character, instead of being 0 or more its acting like1 or more the text im trying to

Re: Concurrent Merge Scheduler MaxThread Count

2009-12-15 Thread Chris Hostetter
: I'm having trouble getting Solr to use more than one thread during index : optimizations. I have the following in my solrconfig.xml: : mergeScheduler class=org.apache.lucene.index.ConcurrentMergeScheduler : int name=maxThreadCount6/int : /mergeScheduler How many segments do

Re: Spellchecking - Is there a way to do this?

2009-12-15 Thread Chris Hostetter
: My first problem appears because I need suggestions inclusive when the : expression has returned results. It's seems that only appear : suggestions when there are no results. Is there a way to do so? can you give us an example of what your queries look like? with the example configs, i can

Filter exclusion on query facets?

2009-12-15 Thread Mat Brown
Hi all, Just wondering if it's possible to do filter exclusion (i.e., multiselect faceting) on query facets in Solr 1.4? Thanks! Mat

Re: Converting java date to solr date and querying dates

2009-12-15 Thread Chris Hostetter
: i want to store dates into a date field called publish date in solr. : how do we do it using solrj I'm pretty sure that when indexing docs, you can add Date objects directly to the SolrInputDocument as field values -- but 'm not 100% certain (i don't use SolrJ much) : likewise

Re: Reverse sort facet query

2009-12-15 Thread Chris Hostetter
: Does anyone know of a good way to perform a reverse-sorted facet query (i.e. rarest first)? I'm fairly confident that code doesn't exist at the moment. If i remember correctly, it would be fairly simply to implement if you'd like to submit a patch: when sorting by count a simple bounded

Re: Can solr web site have multiple versions of online API doc?

2009-12-15 Thread Israel Ekpo
2009/12/15 Teruhiko Kurosaka k...@basistech.com Lucene keeps multiple versions of its API doc online at http://lucene.apache.org/java/X_Y_Z/api/all/index.html for version X.Y.Z. I am finding this very useful when comparing different versions. This is also good because the javadoc comments

Re: Log of zero result searches

2009-12-15 Thread Chris Hostetter
: Subject: Log of zero result searches : References: 26747482.p...@talk.nabble.com 26748588.p...@talk.nabble.com : 359a9283091203m73b4dc9ya51aa97e460b3...@mail.gmail.com : 26756663.p...@talk.nabble.com 26776651.p...@talk.nabble.com :

RE: Request Assistance with DIH

2009-12-15 Thread Turner, Robbin J
Thanks for the reply, just what I was looking for in answer. I am running under Tomcat 6 on Solaris 10, the person that replied before you looks like they running under jetty. I have configured jndi context. I stop and start tomcat using the Solaris SMF, equivalent to services in linux. But

Re: facet.field problem in SolrParams to NamedList

2009-12-15 Thread Chris Hostetter
: Ej.: q=something field:value becomes q=something valuefq=field:value : : To do this, in the createParser method, I apply a regular expression : to the qstr param to obtain the fq part, and then I do the following: : : NamedListObject paramsList = params.toNamedList(); :

Re: Log of zero result searches

2009-12-15 Thread stuart yeates
Chris Hostetter wrote: See Also: http://en.wikipedia.org/wiki/Thread_hijacking You may want to update that link, since that wikipedia page has been deleted for some time. cheers stuart -- Stuart Yeates http://www.nzetc.org/ New Zealand Electronic Text Centre

Re: wildcard oddity

2009-12-15 Thread Erick Erickson
Do you get the same behavior if you search for gang instead of gets? I'm wondering if there's something going on with stemEnglishPossesive. According to the docs you *should* be OK since you set setmEnglishPosessive=0, but this would help point in the right direction. Also, am I correct in

Solr client query vs Solr search query

2009-12-15 Thread insaneyogi3008
Hello, I had this question to ask regarding building of a Solr query . On the solr server running on a linux box my query that returns results is as follows , this one of course returns the search results

Solr client query vs Solr search query

2009-12-15 Thread insaneyogi3008
Hello, I had this question to ask regarding building of a Solr query . On the solr server running on a linux box my query that returns results is as follows , this one of course returns the search results

store content only of documents

2009-12-15 Thread javaxmlsoapdev
I store document in a field content field defiend as follow in schema.xml field name=content type=text indexed=true stored=true multiValued=true/ and following in solrconfig.xml requestHandler name=/update/extract class=org.apache.solr.handler.extraction.ExtractingRequestHandler lst

Re: Filter exclusion on query facets?

2009-12-15 Thread Uri Boness
Yes, you can tag filters using the new local params format and then explicitly exclude them when providing the facet fields. see: http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters Cheers, Uri Mat Brown wrote: Hi all, Just wondering if it's possible to do filter

Re: Using facets to narrow results with multiword field

2009-12-15 Thread Chris Hostetter
: : I'm using facet.field=lbrand and do get good results for eg: Geomax, GeoMax, : GEOMAX all of them falls into geomax. But when I'm filtering I do get : strange results: : : brand:geomax gives numFound=0 : lbrand:geomax gives numFound=57 (GEOMAX, GeoMag, Geomag) : : How should I redefine

RE: SolrPlugin Guidance

2009-12-15 Thread Chris Hostetter
: Our QParser plugin will perform queries against directory documents and : return any file document that has the matching directory id(s). So the : plugin transforms the query to something like : : q:+(directory_id:4 directory:10) +directory_id:(4) ... : Currently the parser plugin is

Re: using q= , adding fq=

2009-12-15 Thread Chris Hostetter
: 1) adding something like: q=cat_id:xxxfq=geo_id= would boost : performance? : : : For the n 1 query, yes, adding filters should improve performance : assuming it is selective enough. The tradeoff is memory. You might even find that something like this is faster...

Text formatting lost

2009-12-15 Thread Mike Aymard
Hi, I'm a newbie and have a question about the text that is stored and then returned from a query. The field in question is of type text, is indexed and stored. The original text included various blank lines (line feeds), but when the text field is returned as the result from a query, all of