Search for document by starting/ending with a keyword.

2007-12-06 Thread Suhas M
Hi All, I want to perform a search for documents that contain the word starting with given KEYWORD or Ending with given KEYWORD. Ex: Say document contains "RenjiMathewThomas" Now I want to perform a search for all the documents that contain the word starting with "Renji" or a search that for d

Searches starting with wildcard

2007-12-06 Thread Suhas M
Hi All, I want to perform a search for documents that contain the word Ending with given KEYWORD. Ex: Say document contains "RenjiMathewThomas" Now I want to perform a search for all the documents that contain the word starting with "Renji" Lucene does not allow searches starting with wil

Re: Searching for two terms together in a multiValued TextField

2007-12-06 Thread Phillip Farber
Hello Hoss, I appreciate your detailed response. I think I like your second alternative because I'd like to score whole books rather than pages in books. It seems to me that the more words one has to work with in a "document" the better the scoring would be for the entire book. Here's a qu

solrj - adding a SolrDocument (not a SolrInputDocument)

2007-12-06 Thread Brian Whitman
Writing a utility in java to do a copy from one solr index to another. I query for the documents I want to copy: SolrQuery q = new SolrQuery(); q.setQuery("dogs"); QueryResponse rq = source_solrserver.query(q); for( SolrDocument d : rq.getResults() ) { // now I want to add these to a new

Re: solrj - adding a SolrDocument (not a SolrInputDocument)

2007-12-06 Thread Ryan McKinley
try: public static SolrInputDocument toSolrInputDocument( SolrDocument d ) { SolrInputDocument doc = new SolrInputDocument(); for( String name : d.getFieldNames() ) { doc.addField( name, d.getFieldValue(name), 1.0f ); } return doc; } perhaps we should add this to Clie

Re: Cache use

2007-12-06 Thread Matthew Phillips
No one has a suggestion? I must be missing something because as I understand it from Dennis' email, all of queries are very quick (cached type response times) whereas mine are not. I can clearly see time differences between queries that are cached (things that have been auto warmed) and que

Re: solrj - adding a SolrDocument (not a SolrInputDocument)

2007-12-06 Thread Brian Whitman
On Dec 6, 2007, at 3:07 PM, Ryan McKinley wrote: public static SolrInputDocument toSolrInputDocument( SolrDocument d ) { SolrInputDocument doc = new SolrInputDocument(); for( String name : d.getFieldNames() ) { doc.addField( name, d.getFieldValue(name), 1.0f ); } retur

Re: Cache use

2007-12-06 Thread sfox
One possible explanation is that the OS's native file system caching is being successful at keeping these files mostly in RAM most of the time. And so the performance benefits of 'forcing' the files into RAM by using tmpfs aren't significant. So the slowness of the queries is the result of be

Re: solrj - adding a SolrDocument (not a SolrInputDocument)

2007-12-06 Thread Ryan McKinley
Brian Whitman wrote: On Dec 6, 2007, at 3:07 PM, Ryan McKinley wrote: public static SolrInputDocument toSolrInputDocument( SolrDocument d ) { SolrInputDocument doc = new SolrInputDocument(); for( String name : d.getFieldNames() ) { doc.addField( name, d.getFieldValue(name), 1.0

RE: Cache use

2007-12-06 Thread Norskog, Lance
There are query and document field caches. A query cache is a list of records that match a query. A document cache actually contains the fields. Fetching from your query cache still has to assemble the results from the indexed data. If the ram-based index is paging, that is an answerr. Note that

Re: Cache use

2007-12-06 Thread Mike Klaas
On 4-Dec-07, at 11:52 AM, [EMAIL PROTECTED] wrote: Any suggestions are helpful to me,. even general.. Here is the info from my index: How big is the index on disk (the most important files are .frq, and .prx if you do phrase queries? - Total index folder size is 30.7 Gb - .frq is 12.2 Gb - .pr

Re: Searching for two terms together in a multiValued TextField

2007-12-06 Thread Erick Erickson
Scoring isn't that simple, but don't ask me details .. This link might be useful: http://lucene.apache.org/java/docs/scoring.html Erick On Dec 6, 2007 2:15 PM, Phillip Farber <[EMAIL PROTECTED]> wrote: > Hello Hoss, > > I appreciate your detailed response. I think I like your second > alternat

Re: How do I search in all fields without index by solr

2007-12-06 Thread Venkatraman S
On Dec 7, 2007 10:17 AM, Laxmilal Menaria <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I have created a simple java application which indexes database tables, > now > I want to configure the solr on my created index. My index has 5 fields, > FriendID, Title, Address, PhoneNo and Comments. > W

How do I search in all fields without index by solr

2007-12-06 Thread Laxmilal Menaria
Hello everyone, I have created a simple java application which indexes database tables, now I want to configure the solr on my created index. My index has 5 fields, FriendID, Title, Address, PhoneNo and Comments. I have updated solr config.xml according to my fields with the followings: FriendID

Re: How do I search in all fields without index by solr

2007-12-06 Thread Laxmilal Menaria
I don't want to use solr for indexing database, I want to use solr for searching on existing index created by me with using my sample application. LM On 12/7/07, Venkatraman S <[EMAIL PROTECTED]> wrote: > > On Dec 7, 2007 10:17 AM, Laxmilal Menaria <[EMAIL PROTECTED]> wrote: > > > Hello everyone,

Re: How do I search in all fields without index by solr

2007-12-06 Thread Ryan McKinley
solr should be able to read any lucene index -- even if it did not create it. The hitch is that you need to make sure the analyzers and fieldTypes match what is in your index otherwise it is unlikely for the result to be what you expect. To get solr to use your manually created index files, j

Re: How do I search in all fields without index by solr

2007-12-06 Thread Laxmilal Menaria
thanks for fast reply, I have dump my index in solr data folder and able to search in single field only, but want to search in all fields. also how can I configure StandradAnalyzer in solr config xml. LM On 12/7/07, Ryan McKinley <[EMAIL PROTECTED]> wrote: > > solr should be able to read any luce

Re: How do I search in all fields without index by solr

2007-12-06 Thread Laxmilal Menaria
Ok, thanks.. have tried it, It working. But if I use it and may be XXX or YYY value is too long, I think many server dont support long urls so it may give us problem. So is there any configuration in config file for future. LM On 12/7/07, Ryan McKinley <[EMAIL PROTECTED]> wrote: > > You should b

Re: How do I search in all fields without index by solr

2007-12-06 Thread Ryan McKinley
You should be able to search any field: ?q=field1:XXX field2:YYY You can register fieldTypes directory to an analyzer using: positionIncrementGap="100"> class="org.apache.lucene.analysis.standard.StandardAnalyzer"/> ryan Laxmilal Menaria wrote: thanks for fast reply, I have du

RE: How do I search in all fields without index by solr

2007-12-06 Thread SDIS M. Beauchamp
You can also use the dismaxrequesthandler to search across multiple field -Message d'origine- De : Laxmilal Menaria [mailto:[EMAIL PROTECTED] Envoyé : vendredi 7 décembre 2007 08:25 À : solr-user@lucene.apache.org Objet : Re: How do I search in all fields without index by solr Ok, tha