lucene document via JSON

2009-05-30 Thread Antonio Eggberg
Hi, Is adding/updating/deleting in JSON format possible? actually my need is mostly update I like to let user update certain fields of an existing results? Another solution is I let user save it in DB and then server convert/post XML to Solr.. but not so fancy :) Thanks Anton

highlight results from pdf search

2009-05-30 Thread rossputin
Hi. I have some PDF documents indexed through solr cell. My highlighting queries work fine on standard xml doc types, eg the samples. I would now like to highlight some queries on a PDF document. Currently for my simple examples I am just indexing a PDF, providing an id, and an arbitrary ext.l

Re: java.lang.RuntimeException: after flush: fdx size mismatch

2009-05-30 Thread Michael McCandless
Woops, here's the patch (added you, diretly, on the "To:" so that you get the patch; Apache's list manager strips patches). Yes, if the fdx file is getting deleted out from under Lucene, that'd also explain what's happening. Though the timing would have to be very quick. What's happening is Luce

SV: lucene document via JSON

2009-05-30 Thread antonio_eggberg
I have found this https://issues.apache.org/jira/browse/SOLR-945 Seems like this might solves problem.. interesting its also faster!! Question - is there any specific reason this is not in the trunk? Also does this mean once the issue is sorted then Data Import Handler will also benefit from

When searching for !...@#$%^&*() all documents are matched incorrectly

2009-05-30 Thread Sam Michaels
Hi, I'm running Solr 1.3/Java 1.6. When I run a query like - (activity_type:NAME) AND title:(\...@#$%\^&\*\(\)) all the documents are returned even though there is not a single match. There is no title that matches the string (which has been escaped). My document structure is as follows N

how to do exact serch with solrj

2009-05-30 Thread Jianbin Dai
Hi, I want to search "hello the world" in the "title" field using solrj. I set the query filter query.addFilterQuery("title"); query.setQuery("hello the world"); but it returns not exact match results as well. I know one way to do it is to set "title" field to string instead of text. But is

Re: When searching for !...@#$%^&*() all documents are matched incorrectly

2009-05-30 Thread Ryan McKinley
two key things to try (for anyone ever wondering why a query matches documents) 1. add &debugQuery=true and look at the explain text below -- anything that contributed to the score is listed there 2. check /admin/analysis.jsp -- this will let you see how analyzers break text up into tokens. Not

Re: When searching for !...@#$%^&*() all documents are matched incorrectly

2009-05-30 Thread Walter Underwood
I'm really curious. What is the most relevant result for that query? wunder On 5/30/09 7:35 PM, "Ryan McKinley" wrote: > two key things to try (for anyone ever wondering why a query matches > documents) > > 1. add &debugQuery=true and look at the explain text below -- > anything that contribu

Re: how to do exact serch with solrj

2009-05-30 Thread Avlesh Singh
query.setQuery("title:hello the world") is what you need. Cheers Avlesh On Sun, May 31, 2009 at 6:23 AM, Jianbin Dai wrote: > > Hi, > > I want to search "hello the world" in the "title" field using solrj. I set > the query filter > query.addFilterQuery("title"); > query.setQuery("hello the worl

Re: how to do exact serch with solrj

2009-05-30 Thread Jianbin Dai
I tried, but seems it's not working right. --- On Sat, 5/30/09, Avlesh Singh wrote: > From: Avlesh Singh > Subject: Re: how to do exact serch with solrj > To: solr-user@lucene.apache.org > Date: Saturday, May 30, 2009, 10:56 PM > query.setQuery("title:hello the > world") is what you need. > >

Re: how to do exact serch with solrj

2009-05-30 Thread Avlesh Singh
You need exact match for all the three tokens? If yes, try query.setQuery("title:\"hello the world\""); Cheers Avlesh On Sun, May 31, 2009 at 12:12 PM, Jianbin Dai wrote: > > I tried, but seems it's not working right. > > --- On Sat, 5/30/09, Avlesh Singh wrote: > > > From: Avlesh Singh > > S

Re: how to do exact serch with solrj

2009-05-30 Thread Jianbin Dai
That's correct! Thanks Avlesh. --- On Sat, 5/30/09, Avlesh Singh wrote: > From: Avlesh Singh > Subject: Re: how to do exact serch with solrj > To: solr-user@lucene.apache.org > Date: Saturday, May 30, 2009, 11:45 PM > You need exact match for all the > three tokens? > If yes, try query.setQuer