Re: sort by function

2010-05-24 Thread MitchK
Where is your query? You don't search for anything. The q-param is empty. You got two options (untested): remove the q-param or search for something special. I think removing is not a good idea. Instead search for *:* would retrive ALL results that match your filter-query. Kind regards -

Indexing stalls reads

2010-05-24 Thread Manish N
Hey, I'm using solr 1.4 I've a master / slave setup, I use the slave for all my read operations commits are scheduled every 20 mins or every 1 docs. Now I think slave shouldn't build index but fetch ones created on Master, but I see it creating indexes, during which all read stalls.

sort by field length

2010-05-24 Thread Sascha Szott
Hi folks, is it possible to sort by field length without having to (redundantly) save the length information in a seperate index field? At first, I thought to accomplish this using a function query, but I couldn't find an appropriate one. Thanks in advance, Sascha

Dynamically augment search with data

2010-05-24 Thread Travis Chase
So my need is this: I have a site in which a user does a query for other users. The user can filter the query by different parameters that will limit the result set. One of the things about the system is that the user's can like different objects (Products, Services, etc.). When the user

Re: CFP for Lucene Revolution Conference, Boston, MA October 7 8 2010

2010-05-24 Thread Grant Ingersoll
I should add that talks on Mahout, Tika, Nutch, etc. are also encouraged. -Grant On May 17, 2010, at 8:43 AM, Grant Ingersoll wrote: Lucene Revolution Call For Participation - Boston, Massachusetts October 7 8, 2010 The first US conference dedicated to Apache Lucene and Solr is coming

Re: Embedded Server, Caching, Stats page updates

2010-05-24 Thread Antoniya Statelova
So you're right i did miss removing the app deployment but removing that still didn't really do that great. The avg request response time is still slower. The bell curve is a lot more streched than it was before but it doesn't seem to give an overall better performance. Thanks for your

Highlighting a field with a certain value

2010-05-24 Thread noel
Hello, How am I able to highlight a field that contains a specific value? If I have a field called type, how am I able to highlight the rows whose values contain something like title?

Problem with extended dismax, minus prefix (to mean NOT) and interaction with mm?

2010-05-24 Thread Bill Dueber
I'm running edismax (on both a 1.4 with patch and a branch_3x version) and I'm seeing something I don't expect. We have our mm set such that 2/2 must match and 2/3 must match (mm=2-1 567% A query of dog cat ...gets interpreted as dog AND cat But a query of dog cat -mouse ...gets

Re: IndexSearcher and Caches

2010-05-24 Thread Rahul R
I am not sure, what you mean with multi-user-scenario. I have an application deployed on an application server (Weblogic). This application uses solr to query an index. Users (sessions) will log in to the application, query and then log out. This login and logout has nothing to do with solr but

Highlighting is not happening

2010-05-24 Thread Doddamani, Prakash
Hi I am using dismax request handler, I wanted to highlight the search field, So added str name=hltrue/str I was expecting like if I search for keyword Akon resultant docs wherever the Akon is available is bold. But I am not seeing them getting bold, could some one tell me the real

Re: Highlighting is not happening

2010-05-24 Thread darren
Check that the field you are highlighting on is stored. It won't work otherwise. Now, this also means that the field is returned from the query. For large text fields to be highlighted only, this means the entire text is returned for each result. There is a pending feature to address this, that

Re: CFP for Lucene Revolution Conference, Boston, MA October 7 8 2010

2010-05-24 Thread Dennis Gearon
Are there any of these conferences in India? Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php --- On Mon, 5/24/10, Grant Ingersoll gsing...@apache.org wrote: From: Grant

RE: Highlighting is not happening

2010-05-24 Thread Doddamani, Prakash
Hey Daren, Yes the fields for which I am searching are stored and indexed, also they are returned from the query, Also it is not coming, if the entire search keyword is part of the field. Thanks Prakash -Original Message- From: dar...@ontrenet.com [mailto:dar...@ontrenet.com] Sent:

Dynamic analyzers

2010-05-24 Thread dan sutton
Hi, I have a requirement to dynamically choose a fieldType to analyze text in multiple languages. I will know the language (in a separate field) at index and query time. I've tried implementing this with a custom UpdateRequestProcessorFactory and custom DocumentBuilder.toDocument to change the

RE: Solr 1.4 Enterprise Search Server book examples

2010-05-24 Thread Robert Risley
I have Windows 7 x64. The entire issue is the non-existence of solr/logs folder. Even when I run commands in Administrator mode the folder doesn't get created automagically. After I manually created it, ant index (21 minutes) and java -Xms512M -Xmx1024M -Dfile.encoding=UTF8

Re: Highlighting is not happening

2010-05-24 Thread Sascha Szott
Hi Prakash, more importantly, check the field type and its associated analyzer. In case you use a non-tokenized type (e.g., string), highlighting will not appear if only a partial field match exists (only exact matches, i.e. the query coincides with the field value, will be highlighted). If

RE: Highlighting is not happening

2010-05-24 Thread Doddamani, Prakash
Thanks Sascha, The type for fields for which I am searching are all text , and I am using solr.TextField fieldType name=text class=solr.TextField positionIncrementGap=100 analyzer type=index tokenizer class=solr.WhitespaceTokenizerFactory/ !-- in this example, we will only

Re: Highlighting is not happening

2010-05-24 Thread Sascha Szott
Hi Prakash, can you provide 1. the definition of the relevant field 2. your query 3. the definition of the relevant request handler 4. a field value that is stored in your index and should be highlighted -Sascha Doddamani, Prakash wrote: Thanks Sascha, The type for fields for which I am

Re: IndexSearcher and Caches

2010-05-24 Thread MitchK
Ahh, now I understand. No, you need no second IndexSearcher as long as the Server is alive. You can reuse your searcher for every user. The only commands you are executing per user are those to create a search-query. Kind regards, - Mitch -- View this message in context:

getting documents sorted after a faceted search

2010-05-24 Thread Furkan Kuru
I apply a faceted search and get document ids from the facet_field I have used. Then I search for these documents given ids. id:(id1 id2 ...) But the order is not predictable. (It applies OR) I do not want to sort documents again. Is there any way to get documents in the given id order? --

Re: IndexSearcher and Caches

2010-05-24 Thread Rahul R
Thank you I found the API to get the existing SolrIndexSearcher to be present in SolrCore: SolrCore.getSearcher().get() So if now the Index changes (a commit is done) in between, will I automatically get the new SolrIndexSearcher from this call ? Regards Rahul On Mon, May 24, 2010 at 11:25

Re: IndexSearcher and Caches

2010-05-24 Thread MitchK
Good question. Well, I never worked productively with SolrJ. But two things: The first: As the documentation says, you *should* get your IndexSearcher from your SolrQueryRequest-object. The second: As a developer of the SolrJ I would do as much as I can automatically behind the curtain. That

Re: Highlighting is not happening

2010-05-24 Thread Erik Hatcher
It's not true that highlighting means you have to return the field from the query too. You can specify fl independently of hl.fl Erik On May 24, 2010, at 12:02 PM, dar...@ontrenet.com wrote: Check that the field you are highlighting on is stored. It won't work otherwise. Now,

Re: Highlighting is not happening

2010-05-24 Thread Darren Govoni
A. Good to know. Thanks! On Mon, 2010-05-24 at 16:34 -0400, Erik Hatcher wrote: It's not true that highlighting means you have to return the field from the query too. You can specify fl independently of hl.fl Erik On May 24, 2010, at 12:02 PM, dar...@ontrenet.com wrote:

Faceted search not working?

2010-05-24 Thread Ilya Sterin
I'm trying to perform a faceted search without any luck. Result set doesn't return any facet information... http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title I'm getting the result set, but no face information present? Is there something else that needs to happen to turn

Re: Faceted search not working?

2010-05-24 Thread Sascha Szott
Hi Ilya, Ilya Sterin wrote: I'm trying to perform a faceted search without any luck. Result set doesn't return any facet information... http://localhost:8080/solr/select/?q=title:*facet=onfacet.field=title I'm getting the result set, but no face information present? Is there something else

Re: Faceted search not working?

2010-05-24 Thread Erik Hatcher
it's probably because your query isn't matching anything. try q=title: [* TO *], or maybe even simply *:* if you are trying to match all documents. Erik On May 24, 2010, at 5:11 PM, Ilya Sterin wrote: I'm trying to perform a faceted search without any luck. Result set doesn't

Re: Commits, facet autowarming and hung searches

2010-05-24 Thread Chris Hostetter
: -Should I be warming the new searcher with a search which uninverts all of : my fields? yes. : -If so, will the warming happen before the new searcher is registered? they will if you do them as part of a newSearcher event in your solrconfig.xml -- the example solrocnfig.xml has some

Re: query parser for boost query text

2010-05-24 Thread Chris Hostetter
: Special characters in the text used for boost queries are not removed. For : example, bq=field1:(what is xyz?)^10 gets parsed into query field1:xyz?10 : (what and is are stop words). Question mark didn't get removed -- field1 : uses standard tokenizer and standard filter, so I expect it to get

Re: Issues with clustering in multicore

2010-05-24 Thread Chris Hostetter
: so i edit the solrconfig.xml in tht file to add clustering information (i : did make sure that the lib declaration points to the correct location). are you sure? ... did you see log messages (prior to the stack trace below) inidcating that the clustering jar was being loaded?

Re: IndexSearcher and Caches

2010-05-24 Thread Chris Hostetter
: Thank you I found the API to get the existing SolrIndexSearcher to be : present in SolrCore: : SolrCore.getSearcher().get() I think perhaps you need to take 5 big steps back and explain what your goal is. 99.999% of all solr users should never care about that method -- even the 99.9% of

Re: sort by field length

2010-05-24 Thread Erick Erickson
Are you sure you want to recompute the length when sorting? It's the classic time/space tradeoff, but I'd suggest that when your index is big enough to make taking up some more space a problem, it's far too big to spend the cycles calculating each term length for sorting purposes considering you