Re: Help to find BaseTokenFilterFactory to write a Custom TokenFilter

2013-11-07 Thread Anuj Kumar
http://stackoverflow.com/questions/13149627/where-did-basetokenfilterfactory-go-in-solr-4-0 On Thu, Nov 7, 2013 at 1:05 PM, Dileepa Jayakody wrote: > Hi All, > > I am writing a custom TokenFilter to post a token value to Apache Stanbol > for enhancement. In this Custom TokenFilter I'm trying to

Re: data Model/UML diagrams/Class diagrams.

2012-07-05 Thread Anuj Kumar
Hi Prasad, If you have the source code, why not reverse engineer the UML diagrams- http://stackoverflow.com/questions/51786/recommended-eclipse-plugins-to-generate-uml-from-java-code Regards, Anuj On Thu, Jul 5, 2012 at 6:42 PM, prasad deshpande < prasad.deshpand...@gmail.com> wrote: > Is there

Re: indexing unstructured text (tweets)

2012-05-28 Thread Anuj Kumar
This is a bit old but provides good information for schema design- http://www.readwriteweb.com/archives/this_is_what_a_tweet_looks_like.php Found this link as well- https://gist.github.com/702360 The types of the field may depend on the search requirements. Regards, Anuj On Mon, May 28, 2012 at

Re: SIREn integration with SOLR

2012-02-25 Thread Anuj Kumar
Hi Chitra, You can download the distribution using the details given here- http://siren.sindice.com/download.html License has been changed to AGPL3.0 Source code is available here- https://github.com/rdelbru/SIREn/ - Anuj On Wed, Feb 22, 2012 at 3:45 PM, chitra wrote: > Hi, > > We would

Re: Inserting a field in the json doc before indexing

2011-12-19 Thread Anuj Kumar
Hi Dipti, If you are receiving the JSON within your Java code, you can try any library, like- GSON [1] to manipulate JSON before sending it to Solr. - Anuj 1. http://code.google.com/p/google-gson/ On Mon, Dec 19, 2011 at 11:54 PM, Dipti Srivastava < dipti.srivast...@apollogrp.edu> wrote: > Hi,

Re: Read past EOF error due to broken connection

2011-06-22 Thread Anuj Kumar
Hi Pravesh, I was just indexing some documents remotely on a single node instance when the connection broke. So, there isn't any manual copy that I did. I think I will go ahead and re-index. Just curious to know, if there is any option to specify the check-point for last commit and rollback to it

Re: Read past EOF error due to broken connection

2011-06-22 Thread Anuj Kumar
Hi Pravesh, Thanks for your reply. I tried both the approaches- Commit fails with this exception- Exception in thread "main" org.apache.solr.common.SolrException: Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to c

Read past EOF error due to broken connection

2011-06-21 Thread Anuj Kumar
Hello Everyone, While trying to index a set of documents on remote Solr instance, the connection broke and it left the index in an inconsistent state. Now, when I start the instance, it fails while getting the searcher with the following exception- Caused by: java.io.IOException: read past EOF at

Re: Including Score in Solr POJO

2011-05-24 Thread Anuj Kumar
nse results = getSearchServer().query(query); > > // get the documents > > SolrDocumentList resultDocs = results.getResults(); > > // get the maximum score > > float maxScore = resultDocs.getMaxScore(); > > // iterate through the documents to see the results > >

Re: Including Score in Solr POJO

2011-05-23 Thread Anuj Kumar
/ get the maximum score float maxScore = resultDocs.getMaxScore(); // iterate through the documents to see the results for(SolrDocument doc : resultDocs){ // get the score Object score = doc.get("score"); } Hope that helps. Regards, Anuj > > Thanks. > > On Mon, May 23,

Re: Including Score in Solr POJO

2011-05-23 Thread Anuj Kumar
Hi, If you mean SolrJ (as I understand by your description of POJOs), you can add the score by setting the property IncludeScore to true. For example- SolrQuery query = new SolrQuery(). setQuery(keyword). *setIncludeScore(true);* Regards, Anuj On Mon, May 23, 2011 at 8:31 PM, Kissue K

Re: I only want to return a fields value in certain cases, how is this done

2011-05-23 Thread Anuj Kumar
Hi, On Mon, May 23, 2011 at 7:27 PM, bryan rasmussen wrote: > Let us say I have 3 fields I index > f1, f2, f3. > > f1 and f2 are copied to f4. > f4 is the default searched field. > > > There is a value that is found in f2 and f3. > > When I am searching in f3 I want to return only f3 and none ot

Re: Exact match

2011-05-17 Thread Anuj Kumar
Hi Alex, You need to define that field of type String in the schema and then search for it. That will give you an exact match. Regards, Anuj On Tue, May 17, 2011 at 7:21 PM, Alex Grilo wrote: > Hi, > > Can I make a query that returns only exact match or do I have to change the > fields to achi

Re: Text Only Extraction Using Solr and Tika

2011-05-05 Thread Anuj Kumar
Hi Emyr, You can try the XPath based approach and see if that works. Also, see if dynamic fields can help you for the meta data fields. References- http://wiki.apache.org/solr/SchemaXml#Dynamic_fields http://wiki.apache.org/solr/ExtractingRequestHandler#Input_Parameters http://wiki.apache.org/sol

Re: querying in Java

2011-05-02 Thread Anuj Kumar
lue Tuesday > > I have tried a query string of "blue&Tuesday", with no success. > > > > -Original Message- > From: Anuj Kumar [mailto:anujs...@gmail.com] > Sent: Friday, April 29, 2011 2:10 PM > To: solr-user@lucene.apache.org > Subject: Re: que

Re: querying in Java

2011-04-29 Thread Anuj Kumar
wrote: > Thanks for the reply. What I want is for the query to search all fields > for the specified value. > > -Original Message----- > From: Anuj Kumar [mailto:anujs...@gmail.com] > Sent: Friday, April 29, 2011 1:51 PM > To: solr-user@lucene.apache.org > Subject: Re: quer

Re: querying in Java

2011-04-29 Thread Anuj Kumar
Hi Jeff, In that case, it will query w.r.t default field. What is your default search field in the schema? Regards, Anuj On Fri, Apr 29, 2011 at 11:10 PM, Saler, Jeff wrote: > Is there any way to query for data that is in any field, i.e. not using > a specific field name? > > > > For example,

Re: solr- Uima integration

2011-04-17 Thread Anuj Kumar
Hi Isha, To integrate your UIMA analysis engine with Solr. Try: http://uima.apache.org/sandbox.html#solrcas.consumer Regards, Anuj On Mon, Apr 18, 2011 at 12:05 PM, Isha Garg wrote: > Hi All! > > Can anyone explain me the what are

Re: Problems indexing very large set of documents

2011-04-05 Thread Anuj Kumar
errors. What is strange is, nearly every > file succeeded before about the 2200-files-mark, and nearly every file after > that failed. > > > ~Brandon Waterloo > > > From: Anuj Kumar [anujs...@gmail.com] > Sent: Monday, April 04, 2011 2:48 PM >

Re: Problems indexing very large set of documents

2011-04-04 Thread Anuj Kumar
ooks like I'm using Tika 0.4: > apache-solr-1.4.1/contrib/extraction/lib/tika-core-0.4.jar > .../tika-parsers-0.4.jar > > ~Brandon Waterloo > > ____ > From: Anuj Kumar [anujs...@gmail.com] > Sent: Monday, April 04, 2011 2:12 PM > To:

Re: Problems indexing very large set of documents

2011-04-04 Thread Anuj Kumar
This is related to Apache TIKA. Which version are you using? Please see this thread for more details- http://lucene.472066.n3.nabble.com/PDF-parser-exception-td644885.html Hope it helps. Regards, Anuj On Mon, Apr 4, 2011 at 1