Re: Solrj - Document [null] missing required field: id

2010-04-20 Thread Tan-Vinh Nguyen
Sepehr wrote: > Hi All, > > I have a problem when indexing documents with Solrj. I have a Java > bean and when I try to index my object using addBean method, I get a > bad request response from Solr, complaining with this message: > "SEVERE: org.apache.solr.common.SolrException: Document [null] mi

RE: dismax vs the standard query handlers

2010-04-20 Thread caman
Your answers are here. Wiki describes it pretty well http://wiki.apache.org/solr/DisMaxRequestHandler From: Sandhya Agarwal [via Lucene] [mailto:ml-node+739071-961078546-124...@n3.nabble.com] Sent: Tuesday, April 20, 2010 9:40 PM To: caman Subject: dismax vs the standard query hand

dismax vs the standard query handlers

2010-04-20 Thread Sandhya Agarwal
Hello, What are the advantages of using the “dismax” query handler vs the “standard” query handler. As I understand, “dismax” queries are parsed differently and provide more flexibility w.r.t score boosting etc. Do we have any more reasons ? Thanks, Sandhya

Re: DIH dataimport.properties with

2010-04-20 Thread Shawn Heisey
On 4/20/2010 9:09 PM, caman wrote: Shawn, Is this your custom implementation? "For a delta-import, minDid comes from the maxDid value stored after the last successful import." Are you updating the dataTable after the import was successful? How did you handle this? I have similar scenario and y

Re: DIH dataimport.properties with

2010-04-20 Thread Michael Tibben
Hey Shawn, Thanks for the tip. This will work nicely. I totally missed the ability to use request parameters using ${dataimporter.request.* } This way, I can maintain my own last_index_time timestamp outside of the DIH properties file. Much appreciation Regards, Michael On 21/04/10 09

RE: DIH dataimport.properties with

2010-04-20 Thread caman
Shawn, Is this your custom implementation? "For a delta-import, minDid comes from the maxDid value stored after the last successful import. " Are you updating the dataTable after the import was successful? How did you handle this? I have similar scenario and your approach will work f

Re: DIH dataimport.properties with

2010-04-20 Thread Lance Norskog
Please file a JIRA asking for the ability to direct what is saved in the DIH properties file. It should be possible to use your own timestamp or generated id. On 4/20/10, Shawn Heisey wrote: > Michael, > > The SolrEntityProcessor looks very intriguing, but it won't work with > the released 1.4 ve

Spell check suggesting corrections for boost function

2010-04-20 Thread Cuong Do
I'm trying to perform spell checking as part of a query using the Lucene parser, and I'm finding that the spell checker is giving me suggestions for the mathematical functions used in my boost clause. Here's my request as seen through solr admin: true xml 5 *,score 0

Re: "json.nl=arrarr" does not work with "facet.date"

2010-04-20 Thread Chris Hostetter
: > If order is more important here, then it should have been a NamedList. Yeah ... i think this is one of those cases where we were too overzealous with SimpleOrderedMap : I need to parse through this list with javascript so would like to set the : output to an array if possible? it's not pos

Re: DIH dataimport.properties with

2010-04-20 Thread Shawn Heisey
Michael, The SolrEntityProcessor looks very intriguing, but it won't work with the released 1.4 version. If that's OK with you and it looks like it'll do what you want, feel free to ignore the rest of this. I'm also using MySQL as an import source for Solr. I was unable to use the last_ind

Pass init params into a custom UpdateHandler?

2010-04-20 Thread Jason Rutherglen
How does one do this? UpdateHandler doesn't override the init method like SearchHandler.

RE: Odd query result

2010-04-20 Thread Charlie Jackson
I'll take another look and see if it makes sense to have the index and query time parameters the same or different. As far as the initial issue, I think you're right Tom, it is hitting on both. I think what threw me off was the highlighting -- in one of my matching documents, the term "I-CAR" is h

Re: Jetty, Tomcat or JBoss?

2010-04-20 Thread Bill Au
I never said they weren't. Bill On Tue, Apr 20, 2010 at 5:54 PM, Abdelhamid ABID wrote: > Which are JEE Web components, aren't they? > > On 4/20/10, Bill Au wrote: > > > > Solr only uses Servlet and JSP. > > > > > > Bill > > > > > > On Sat, Apr 17, 2010 at 9:11 AM, Abdelhamid ABID > > wrote:

Re: Jetty, Tomcat or JBoss?

2010-04-20 Thread Abdelhamid ABID
Which are JEE Web components, aren't they? On 4/20/10, Bill Au wrote: > > Solr only uses Servlet and JSP. > > > Bill > > > On Sat, Apr 17, 2010 at 9:11 AM, Abdelhamid ABID > wrote: > > > Solr does use JEE WEB components > > > > On 4/17/10, Lukáš Vlček wrote: > > > > > > Hi, > > > > > > may be y

Re: Jetty, Tomcat or JBoss?

2010-04-20 Thread Bill Au
Solr only uses Servlet and JSP. Bill On Sat, Apr 17, 2010 at 9:11 AM, Abdelhamid ABID wrote: > Solr does use JEE WEB components > > On 4/17/10, Lukáš Vlček wrote: > > > > Hi, > > > > may be you should be aware that JBoss AS is using Tomcat for web > container > > (with modified classloader), s

RE: Solr Core Creation

2010-04-20 Thread abhatna...@vantage.com
http://localhost:8983/solr/admin/cores?action=CREATE&name=temp&instanceDir= where is the solr_home/home/core The core is created fine but no directory shows for the new core name "temp" Ankit -- View this message in context: http://n3.nabble.com/Solr-Core-Creation-tp733159p73334

RE: Big problem with solr in an official server.

2010-04-20 Thread Villemos, Gert
http://www.lucidimagination.com/blog/2010/01/21/the-seven-deadly-sins-of-solr/ Regards, Gert. From: MitchK [mailto:mitc...@web.de] Sent: Mon 4/19/2010 7:06 PM To: solr-user@lucene.apache.org Subject: Re: Big problem with solr in an official server. Wasn't th

RE: Solr Core Creation

2010-04-20 Thread caman
What was the command executed? From: abhatna...@vantage.com [via Lucene] [mailto:ml-node+733159-1790924601-124...@n3.nabble.com] Sent: Tuesday, April 20, 2010 11:58 AM To: caman Subject: Solr Core Creation I tried creating a core on the fly using remote server -I am able to query ag

Re: Odd query result

2010-04-20 Thread Tom Hill
I agree that, if they are the same, you want to merge them. In this case, I don't think you want them to be the same. In particular, you usually don't want to catenateWords and catenateNumbers both index time AND at query time. You generate the permutations on one, or the other, but you don't need

Re: I have a big problem with pagination using apache solr and haystack

2010-04-20 Thread Israel Ekpo
I hear this sort of complaint frequently. Make ensure you did not forget to send a commit request after deleting any documents you have removed. Until the commit request is made those deletes are not yet finalized and the removed documents will still show up On Tue, Apr 20, 2010 at 2:37 PM, Mitc

Solr Core Creation

2010-04-20 Thread abhatna...@vantage.com
I tried creating a core on the fly using remote server -I am able to query against it however it didn't create any new folder inside solr home is this the expected behavior? I tried searching for this topic but couldn't found any good answer. -Ankit -- View this message in context: http://

Solrj - Document [null] missing required field: id

2010-04-20 Thread Sepehr
Hi All, I have a problem when indexing documents with Solrj. I have a Java bean and when I try to index my object using addBean method, I get a bad request response from Solr, complaining with this message: "SEVERE: org.apache.solr.common.SolrException: Document [null] missing required field: id".

Re: I have a big problem with pagination using apache solr and haystack

2010-04-20 Thread MitchK
Hi Isaac, how did you implement pagination in Solr? What did you do there? Did you ever had a look at your index with q=*:*? Maybe you've forgotten to delete some news while testing your application and so there are some duplicates. Another thing is: If you have got only 20 news and Solr seems t

Re: dismax and date boosts

2010-04-20 Thread Shawn Heisey
I found what I believe is a better option even if the multiplication would work - FROM_UNIXTIME. That returns the same kind of output as you get from an actual database date field. On 4/20/2010 12:07 PM, Shawn Heisey wrote: So, if I have my database multiply my value by 1000, I can put that d

Re: Odd query result

2010-04-20 Thread MitchK
It has nothing to do with your problem, since it seems to work when Tom tested it. However, it seems like you are using the same configurations on query- and index-type analyzer. If you did not hide anything from (for example own filter-implementations), because you don't want to confuse us, you c

Re: Odd query result

2010-04-20 Thread Tom Hill
When I run it, with that fieldType, it seems to work for me. Here's a sample query output 0 17 on 0 xtext:I-Car 2.2 10 ALLCAPS I-CAR CAMEL I-Car Did I miss something? Could you show the output with debugQuery=on for the user's failing query? Assuming I

Re: dismax and date boosts

2010-04-20 Thread Shawn Heisey
So, if I have my database multiply my value by 1000, I can put that directly into a tdate field and it'll work as expected? If that's the case, I think I might be able to modify my query from "SELECT *" to "SELECT *,post_date*1000 as pdate" and add the pdate field to the schema as type tdate.

Odd query result

2010-04-20 Thread Charlie Jackson
I've got an odd scenario with a query a user's running. The user is searching for the term "I-Car". It will hit if the document contains the term "I-CAR" (all caps) but not if it's "I-Car". When I throw the terms into the analysis page, the resulting tokens look identical, and my "I-Car" tokens hi

Re: Help using boolean operators

2010-04-20 Thread Erick Erickson
That's a fine thing to do, that's what parentheses are for Erick On Tue, Apr 20, 2010 at 1:16 AM, Sandhya Agarwal wrote: > Thanks Erick. Using parentheses works. > > With parentheses, the query,q=field1: (this is a good string) is parsed as > follows : > > +field1:this +field1:good +field1:

I have a big problem with pagination using apache solr and haystack

2010-04-20 Thread Ariel
Hi everybody: I have a big problem with pagination using apache solr and haystack, this is what it is happening: I have a site where the news are being indexing with haystack and solr, but the problem is that when a I make the search the pagination is showing me more match results that what really

Re: Wildcard search in phrase query using spanquery

2010-04-20 Thread Ahmet Arslan
> I tried that and got the following result. Do I have to do > anything other > than the mentioned instructions to make it work? > > HTTP ERROR: 500 > > tried to access field > org.apache.lucene.queryParser.QueryParser.field from > class > org.apache.lucene.queryParser.ComplexPhraseQueryParser$C

Re: Best Open Source

2010-04-20 Thread Michael Kuhlmann
Nice site. Really! In addition to Dave: How do I search with tags enabled? If I search for "Blog", I can see that there's one blog software written in Java. When I click on the Java tag, then my search is discarded, and I get all Java software. when I do my search again, the tag filter is lost. It

RE: Best Open Source

2010-04-20 Thread Dave Searle
First impressions, nice site - some feedback: 1) It would be good if the tags in the central column were real facets rather than search tags, i.e. they changed depending on my search or selection and drilled down to filter results out. 2) It would be good if users could also review and rate the

Best Open Source

2010-04-20 Thread solai ganesh
Hello all, We have launched a new site hosting the best open source products and libraries across all categories. This site is powered by Solr search. There are many open source products available in all categories and it is sometimes difficult to identify which is the best. We identify the best.

Re: Wildcard search in phrase query using spanquery

2010-04-20 Thread Maddy.Jsh
I tried that and got the following result. Do I have to do anything other than the mentioned instructions to make it work? HTTP ERROR: 500 tried to access field org.apache.lucene.queryParser.QueryParser.field from class org.apache.lucene.queryParser.ComplexPhraseQueryParser$ComplexPhraseQuery j