Re: SOLR results case

2012-01-05 Thread Juan Grande
content, the field has a LowerCaseFilterFactory > filter, so that when I'm searching it's not case sensitive. Is there a way > to re-filter the data when it's presented as a result to restore the case > or convert to Title Case? > > Thanks, > Dave > > On Thu, Jan 5, 2012 at 12

Re: SOLR results case

2012-01-05 Thread Juan Grande
Hi Dave, The stored content (which is returned in the results) isn't modified by the analyzers, so this shouldn't be a problem. Could you describe in more detail what you are doing and the results that you're getting? Thanks, *Juan* On Thu, Jan 5, 2012 at 2:17 PM, Dave wrote: > I'm running

Re: Highlighting in 3.5?

2012-01-03 Thread Juan Grande
eous results. Here is my >> query: >> >> {!lucene q.op=OR df=text_t} kind_s:doc AND (( field_t:[* TO *] )) >> >> Clearly, the default field (text_t) is not being searched by this query >> and highlighting it would be semantically incongruent with the query. &g

Re: Highlighting in 3.5?

2012-01-02 Thread Juan Grande
Hi Darren, This is the expected behavior. Have you tried setting the hl.requireFieldMatch parameter to true? See: http://wiki.apache.org/solr/HighlightingParameters#hl.requireFieldMatch *Juan* On Mon, Jan 2, 2012 at 10:54 AM, Darren Govoni wrote: > Hi, > Can someone tell me if this is corre

Re: Custom Solr FunctionQuery Error

2011-12-28 Thread Juan Grande
Hi Parvin, You must also add the query parser definition to solrconfig.xml, for example: *Juan* On Wed, Dec 28, 2011 at 4:16 AM, Parvin Gasimzade < parvin.gasimz...@gmail.com> wrote: > Hi all, > > I have created custom Solr FunctionQuery in Solr 3.4. > I extended ValueSourceParser, ValueSou

Re: Grouping results after Sorting or vice-versa

2011-12-28 Thread Juan Grande
Hi, I don't have an answer, but maybe I can help you if you provide more information, for example: - Which Solr version are you running? - Which is the type of the date field? - The output you are getting - The output you expect - Any other information that you consider relevant. Thanks, *Juan*

Re: Trim and copy a solr field

2011-12-15 Thread Juan Grande
d I be missing here ? > > Thanks and Regards, > Swapna. > > -Original Message- > From: Juan Grande [mailto:juan.gra...@gmail.com] > Sent: Monday, December 12, 2011 11:50 PM > To: solr-user@lucene.apache.org > Subject: Re: Trim and copy a solr field > > Hi Swapna,

Re: Trim and copy a solr field

2011-12-12 Thread Juan Grande
Hi Swapna, You could try using a copyField to a field that uses PatternReplaceFilterFactory: The regular expression may not be exactly what you want, but it will give you an idea of how to do it. I'm pretty sure there must be some other ways of doing thi

Re: limiting the content of content field in search results

2011-12-12 Thread Juan Grande
Hi, It sounds like highlighting might be the solution for you. See http://wiki.apache.org/solr/HighlightingParameters *Juan* On Mon, Dec 12, 2011 at 4:42 AM, ayyappan wrote: > I am developing n application which indexes whole pdfs and other documents > to solr. I have completed a working ver

Re: Using result grouping with SolrJ

2011-12-07 Thread Juan Grande
Hi Kissue, Support for grouping on SolrJ was added in Solr 3.4, see https://issues.apache.org/jira/browse/SOLR-2637 In previous versions you can access the grouping results by simply traversing the various named lists. *Juan* On Wed, Dec 7, 2011 at 1:22 PM, Kissue Kissue wrote: > Hi, > > I

Re: where is the SOLR_HOME ?

2011-09-14 Thread Juan Grande
Hi Ahmad, While Solr is starting it writes the path to SOLR_HOME to the log. The message looks something like: Sep 14, 2011 9:14:53 AM org.apache.solr.core.SolrResourceLoader > INFO: Solr home set to 'solr/' > If you're running the example, SOLR_HOME is usually apache-solr-3.3.0/example/solr S

Re: geodist() parameters?

2011-09-01 Thread Juan Grande
Hi Bill, As far as I know, you can pass a completely different set of parameters to each of the functions/filters. For example: http://localhost:8983/solr/select?q={!func}add(geodist(field1, 10, -10),geodist(field2, 20, -20))&fq={!geofilt sfield=field3 pt=30,-30 d=100}

Re: How to list all dynamic fields of a document using solrj?

2011-08-29 Thread Juan Grande
Hi Michael, It's supposed to work. Can we see a snippet of the code you're using to retrieve the fields? *Juan* On Mon, Aug 29, 2011 at 8:33 AM, Michael Szalay wrote: > Hi all > > how can I list all dynamic fields and their values of a document using > solrj? > The dynamic fields are never re

Re: Exact Match using Copy Fields

2011-08-18 Thread Juan Grande
Hi, are you sure you're using dismax query parser? Make sure you have the parameter "defType=dismax" in your request. *Juan* On Thu, Aug 18, 2011 at 11:22 AM, jyn7 wrote: > Hi, > > I am trying to achieve an exact match search on a text field. I am using a > copy field and copying it to a stri

Re: Possible to use quotes in dismax qf?

2011-07-28 Thread Juan Grande
Hi, You can use the pf parameter of the DismaxQParserPlugin: http://wiki.apache.org/solr/DisMaxQParserPlugin#pf_.28Phrase_Fields.29 This parameter receives a list of fields using the same syntax as the qf parameter. After determining the list of matching documents, DismaxQParserPlugin will boost

Re: deletedPkQuery fails

2011-07-15 Thread Juan Grande
Hi Elaine, I think you have a syntax error in your query. I'd recommend you to first try the query using a SQL client, until you get it right. This part seems strange to me: and pl.deleted='' having count(*)=0 *Juan* On Wed, Jul 13, 2011 at 5:09 PM, Elaine Li wrote: > Hi Folks, > > I am try

Re: can't get moreLikeThis to work

2011-07-08 Thread Juan Grande
ay of the debug message separated into multiple > lines with indents so it is easier to digest? > > Elaine > > On Thu, Jul 7, 2011 at 8:48 PM, Koji Sekiguchi wrote: > > Plus, debugQuery=on would help you when using MLT after 3.1: > > > > https://issues.apache

Re: Query does not work when changing param order

2011-07-07 Thread Juan Grande
Hi Juan! I think your problem is that in the second case the FieldQParserPlugin is building a phrase query for "mytag myothertag". I recommend you to split the filter in two different filters, one for each tag. If each tag is used in many different filters, and the combination of tags is rarely re

Re: can't get moreLikeThis to work

2011-07-07 Thread Juan Grande
Hi Elaine, The first thing that comes to my mind is that neither the content nor the term vectors of "text" and "category_text" fields are being stored. Check the name of the parameter used to store the term vectors, which actually is "termVectors" and not "term_vectored" (see http://wiki.apache.o

Re: updating documents while keeping unspecified fields

2011-07-07 Thread Juan Grande
Hi Adeel, As far as I know, this isn't possible yet, but some work is being done: https://issues.apache.org/jira/browse/SOLR-139 https://issues.apache.org/jira/browse/SOLR-828 Regards, *Juan* On Thu, Jul 7, 2011 at 2:24 PM, Adeel Qureshi wrote: > What I am trying to do is to update a docume

Re: bug in ExtractingRequestHandler with PDFs and metadata field Category

2011-07-07 Thread Juan Grande
Hi Andras, I added metadata_ so all PDF metadata fields > should be saved in solr as "metadata_something" fields. > The problem is that the "Category" metadata field from the PDF for some > reason is not prefixed with "metadata_" and > solr will merge the "Category" field I have in the schema with

Re: The OR operator in a query ?

2011-07-05 Thread Juan Grande
Hi, This two are valid and equivalent: - fq=sometag:1 OR sometag:5 - fq=sometag:(1 OR 5) Also, beware that fq defines a filter query, which is different from a regular query (http://wiki.apache.org/solr/CommonQueryParameters#fq). For more details on the query syntax see http://lucene.apach

Re: Spellchecker in zero-hit search result

2011-07-04 Thread Juan Grande
Hi Marian, I guess that your problem isn't related to the number of results, but to the component's configuration. The configuration that you show is meant to set up an autocomplete component that will suggest terms from an incomplete user input (something similar to what google does while you're

Re: Feed index with analyzer output

2011-07-02 Thread Juan Grande
Hi Lox, But I would also like to retain the original non-analyzed field for > diplaying purposes. > Actually, for stored fields, Solr always retains the original non-analyzed content, which is the one included in the response. So, if I'm not missing something, you don't need to separate the analy

Re: Reading data from Solr MoreLikeThis

2011-07-01 Thread Juan Grande
Hi, As far as I know, there's no specific method to get the MoreLikeThis section from the response. Anyway, you can retrieve the results with a piece of code like the following: // the is a NamedList of SolrDocumentLists > NamedList mltResult = > (NamedList)response.getResponse().get("moreLikeTh

Re: Regex replacement not working!

2011-06-29 Thread Juan Grande
Hi Samuele, It's not clear for me if your goal is to search on that field (for example, "salary_min:[100 TO 200]") or if you want to show the transformed field to the user (so you want the result of the regex replacement to be included in the search results). If your goal is to show the results t

Re: Sorting

2011-06-02 Thread Juan Grande
Hi Clécio, Your problem may be caused by case sensitiveness of string fields. Try using the "lowercase" field type that comes in the example. Regards, *Juan* On Thu, Jun 2, 2011 at 6:13 PM, Clecio Varjao wrote: > Hi, > > When using the following URL: > > http://localhost:8080/solr/StatReg/se

Re: tika and solr 3,1 integration

2011-06-02 Thread Juan Grande
Hi Naveen, Check if there is a dynamic field named "attr_*" in the schema. The "uprefix=attr_" parameter means that if Solr can't find an extracted field in the schema, it'll add the prefix "attr_" and try again. *Juan* On Thu, Jun 2, 2011 at 4:21 AM, Naveen Gupta wrote: > Hi > > I am trying

Re: Lazy loading error in Extracting request handler

2011-04-19 Thread Juan Grande
Hi Vignesh, Are you working from the provided example? If not, did you copy the solr-cell libraries to your Solr deployment? You can follow the instructions here: http://wiki.apache.org/solr/ExtractingRequestHandler#Configuration Regards, *Juan* On Tue, Apr 19, 2011 at 3:47 AM, Vignesh Raj w

Re: QUESTION: SOLR INDEX BIG FILE SIZES

2011-04-18 Thread Juan Grande
allows you to set the maximum size of the merged segment: > https://issues.apache.org/jira/browse/LUCENE-854. > > > Tom Burton-West > http://www.hathitrust.org/blogs/large-scale-search > > -Original Message- > From: Juan Grande [mailto:juan.gra...@gmail.com] > Sent

Re: QUESTION: SOLR INDEX BIG FILE SIZES

2011-04-15 Thread Juan Grande
Hi John, ¿How can split the file of the solr index into multiple files? > Actually, the index is organized in a set of files called segments. It's not just a single file, unless you tell Solr to do so. That's because some "file systems are about to support a maximun > of space in a single file"

Re: Error on string searching # [STRANGE]

2011-03-10 Thread Juan Grande
I think that the problem is with the "#" symbol, because it has a special meaning when used inside a URL. Try replacing it with "%23", like this: http://192.168.3.3:8983/solr3.1/core0/select?q=myfield:("S.%23L.W.VI.37") Regards, * Juan G. Grande* -- Solr Consultant @ http://www.plugtree.com -- Blo

Re: List of indexed or stored fields

2011-01-25 Thread Juan Grande
You can query all the indexed or stored fields (including dynamic fields) using the LukeRequestHandler: http://localhost:8983/solr/example/admin/luke See also: http://wiki.apache.org/solr/LukeRequestHandler Regards, * **Juan G. Grande* -- Solr Consultant @ http://www.plugtree.com -- Blog @ http:/

Re: [POLL] Where do you get Lucene/Solr from? Maven? ASF Mirrors?

2011-01-21 Thread Juan Grande
t. > > [] Other (someone in your company mirrors them internally or via a > downstream project) > Juan Grande

Re: dataDir in solr.xml

2011-01-20 Thread Juan Grande
I think that the actual name of the property is "solr.data.dir". You can check this in the element in solrconfig.xml. Best, *Juan* On Wed, Jan 19, 2011 at 4:04 PM, Fred Gilmore wrote: > I've checked the archive, and plenty of people have suggested an > arrangement where you can have two core

Re: lazy loading error?

2011-01-19 Thread Juan Grande
In order to use the ExtractingRequestHandler, you have to first copy apache-solr-cell-.jar and all the libraries from contrib/extraction/lib to a "lib" folder next to the "conf" folder of your instance. Also, check the URL because there is an ampersand missing. Regards, *

Re: Term frequency across multiple documents

2011-01-12 Thread Juan Grande
parameter. Regards, Juan Grande On Wed, Jan 12, 2011 at 11:08 AM, Aaron Bycoffe < abyco...@sunlightfoundation.com> wrote: > I'm attempting to calculate term frequency across multiple documents > in Solr. I've been able to use TermVectorComponent to get this data on >

Re: spell suggest response

2011-01-12 Thread Juan Grande
It isn't exactly what you want, but did you try with the "onlyMorePopular" parameter? http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.onlyMorePopular Regards, Juan Grande On Wed, Jan 12, 2011 at 7:29 AM, satya swaroop wrote: > Hi stefan, >I need the

Re: Searching similar values for same field results in different results

2011-01-06 Thread Juan Grande
ng the querying time analysis chain, you should enter the text in the "Field Value (Query)" text box. Good luck, Juan Grande On Thu, Jan 6, 2011 at 10:58 AM, PeterKerk wrote: > > @iorixxx: > I ran: http://localhost:8983/solr/db/update/?optimize=true > This is the

Re: Sorting within grouped results?

2011-01-06 Thread Juan Grande
Did you try adding the parameter "group.sort=popularity+desc" to the URL? I think that's what you want, according to http://wiki.apache.org/solr/FieldCollapsing. Good luck Juan Grande On Thu, Jan 6, 2011 at 3:30 AM, Andy wrote: > I want to group my results by a fie