Re: Issue with using createNodeSet in Solr Cloud

2015-07-21 Thread Savvas Andreas Moysidis
then you can use bin/solr -h my-host-name and that'll be used in > place of the IP. > > Upayavira > > On Tue, Jul 21, 2015, at 05:45 AM, Erick Erickson wrote: > > Glad you found a solution > > > > Best, > > Erick > > > > On Mon, Jul 20,

Re: Issue with using createNodeSet in Solr Cloud

2015-07-20 Thread Savvas Andreas Moysidis
st the "live nodes" > > section of your ZK config? (adminUI>>cloud>>tree>>live_nodes. The > > addresses of my nodes are things like 192.168.1.201:8983_solr. I'm > > wondering if you're taking your node names from the information ZK > >

Re: Issue with using createNodeSet in Solr Cloud

2015-07-18 Thread Savvas Andreas Moysidis
failing so I > suspect it's just a misleading error being returned. > > Best, > Erick > > On Thu, Jul 16, 2015 at 2:22 AM, Savvas Andreas Moysidis > wrote: > > Hello There, > > > > I am trying to use the createNodeSet parameter when creating a new > > coll

Issue with using createNodeSet in Solr Cloud

2015-07-16 Thread Savvas Andreas Moysidis
Hello There, I am trying to use the createNodeSet parameter when creating a new collection but I'm getting an error when doing so. More specifically, I have four Solr instances running locally in separate JVMs (127.0.0.1:8983, 127.0.0.1:8984, 127.0.0.1:8985, 127.0.0.1:8986) and a standalone Zooke

Re: Highlighting without URL condition

2012-09-19 Thread Savvas Andreas Moysidis
Hello, You can add this request parameter in the "defaults" section of your request handler named "/select" in solrconfig.xml like this: true and as long as you use this request handler you won't need to explicitly specify thi

Re: Solr - Proximity search using exact number of words apart

2012-09-16 Thread Savvas Andreas Moysidis
Hi, If you are using the dismax/edismax query parser you can maybe give query slops a try? http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_search_for_one_term_near_another_term_.28say.2C_.22batman.22_and_.22movie.22.29 On 16 September 2012 10:23, Omnia Zayed wrote: > Hi; > > I am working

Re: Use a boolean field as a flag for another, just stored, field

2012-09-09 Thread Savvas Andreas Moysidis
So, as you say, you only need to have a "hasInternalURL" (or something similar) which will be of type boolean and will be populated at index time? Unless I'm missing something I don't see why you would need a custom analyzer for this. On 9 September 2012 22:56, simple350 wrote: > Well - this was

Re: Use a boolean field as a flag for another, just stored, field

2012-09-09 Thread Savvas Andreas Moysidis
Hi, In your field declaration you can specify a "default" value of something your field will be populated with in absence of any value and later at search time run filter queries against that value. Bare in mind that if you want to filter your results based on any value you *have* to index that va

Re: The way to customize ranking?

2012-08-23 Thread Savvas Andreas Moysidis
Could you not apply this logic in your solr client prior to displaying the results? On 23 August 2012 20:56, François Schiettecatte wrote: > I would create two indices, one with your content and one with your ads. This > approach would allow you to precisely control how many ads you pull back an

Re: Frequency of Unique Id displayed more than 1

2012-07-05 Thread Savvas Andreas Moysidis
can you post the schema you are applying pls? On 5 July 2012 11:28, Sohail Aboobaker wrote: > Another observation is that when we query an individual schemaid, it > returns only one row using the search interface. Why would frequency be > more than 1?

Re: Frequency of Unique Id displayed more than 1

2012-07-05 Thread Savvas Andreas Moysidis
Hello, Make sure your unique id has a type which always yields one token after tokenisation is applied (e.g. either "string" or a type which only defines the KeywordTokenizer in its chain) Regards, Savvas On 5 July 2012 11:02, Sohail Aboobaker wrote: > Hi, > > We have defined a unique key as sc

Re: possible status codes from solr during a (DIH) data import process

2012-06-01 Thread Savvas Andreas Moysidis
Hello, Driven by the same requirements we also implemented the same polling mechanism (in java) and found it a bit awkward and error prone having to search through the returned response for occurrences of the terms "failure" or "Rollback" etc. It would be *really* handy if the status command retur

Re: Function Query not getting picked up by Standard Query Parser

2011-06-02 Thread Savvas-Andreas Moysidis
r more details: > http://wiki.apache.org/solr/SolrQuerySyntax#Differences_From_Lucene_Query_Parser > >Erik > > On Jun 2, 2011, at 07:46 , Savvas-Andreas Moysidis wrote: > > > Hello, > > > > I'm trying to find out why my Function Query isn't getting pick

Function Query not getting picked up by Standard Query Parser

2011-06-02 Thread Savvas-Andreas Moysidis
Hello, I'm trying to find out why my Function Query isn't getting picked up by the Standard Parser. More specifically I send the following set of http params (I'm using the "_val_" syntax): . "creationDate"^0.01 on 225 allFields:(born to be wild) 5 ..

DIH Response

2011-05-19 Thread Savvas-Andreas Moysidis
Hello, We have configured solr for delta processing through DIH and we kick off the index request from within a batch process. However, we somehow need to know whether our indexing request succeeded or not because we want to be able to rollback a db transaction if that step fails. By looking at t

Re: Solr book

2011-05-19 Thread Savvas-Andreas Moysidis
great, thanks! So, I guess the "Solr In Action" and "Solr Cookbook" will be based on 3.1.. :) 2011/5/19 Rafał Kuć > Hello! > > Take a look at the Solr resources page on the wiki > (http://wiki.apache.org/solr/SolrResources). > > > -- > Regards, > Rafał Kuć > http://solr.pl

Solr book

2011-05-19 Thread Savvas-Andreas Moysidis
Hello, Does anyone know if there is a v 3.1 book coming any time soon? Regards, Savvas

Re: catch_all field versus multiple OR Boolean query

2011-03-30 Thread Savvas-Andreas Moysidis
oosts. > > Finally, consider adding &debugQuery=on to your query to see what each > field > contributes to the score, that'll help with understanding the scoring, > although it's > a little hard to read... > > Best > Erick > > On Tue, Mar 29, 2011 at 6

catch_all field versus multiple OR Boolean query

2011-03-29 Thread Savvas-Andreas Moysidis
Hello, Currently in our index we have multiple fields and a catch_all field. When users select all search options we specify the catch_all field as the field to search on. This has worked very well for our needs but a question was recently raised within our team regarding the difference between

Re: Matching on a multi valued field

2011-03-29 Thread Savvas-Andreas Moysidis
my bad..just realised your problem.. :D On 29 March 2011 22:07, Savvas-Andreas Moysidis < savvas.andreas.moysi...@googlemail.com> wrote: > I assume you are using the Standard Handler? > In that case wouldn't something like: > "q=common_names:(man's friend)&q.op=

Re: Matching on a multi valued field

2011-03-29 Thread Savvas-Andreas Moysidis
I assume you are using the Standard Handler? In that case wouldn't something like: "q=common_names:(man's friend)&q.op=AND" work? On 29 March 2011 21:57, Brian Lamb wrote: > Hi all, > > I have a field set up like this: > > stored="true" required="false" /> > > And I have some records: > > RECOR

Re: frequent index updates

2011-03-21 Thread Savvas-Andreas Moysidis
Hello, This thread might help: http://search-lucene.com/m/09PHV1E0ZxQ1/Possibilities+of+near+real+time+search+with+solr/v=threaded On 21 March 2011 09:33, Prav Buz wrote: > Hi, > > I'm wondering what are the best way to do this for this scenario: > > Index will have about 250 - 400 million item

Re: Logic operator with dismax

2011-03-21 Thread Savvas-Andreas Moysidis
Hello, The Dismax search handler doesn't have the concept of a logical operator in terms of OR-AND but rather uses a feature called Min-Should-Match (or mm). This parameter specifies the absolute number or percentage of the entered terms that you need them to match. To have an OR-like effect you c

Re: Solr chained exclusion query

2011-03-04 Thread Savvas-Andreas Moysidis
Can you not calculate on the fly when the date which is one month before the current is and use that as your upper limit? e.g. taking today as an example your upper limit would be 20011-02-04T00:00:00Z and so your query would be something like: q=products:Dog AND saledate:[* TO 20011-02-04T00:00:0

Re: Solr under Tomcat

2011-03-02 Thread Savvas-Andreas Moysidis
Hi Sai, You can find your index files at: {%TOMCAT_HOME}\solr\data\index If you want to clear the index just delete the whole index directory. Regards, - Savvas On 2 March 2011 14:09, Thumuluri, Sai wrote: > Good Morning, > We have deployed Solr 1.4.1 under Tomcat and it works great, however I

Re: Create a tomcat service.

2011-02-28 Thread Savvas-Andreas Moysidis
..--DisplayName doesn't *have* to be {TOMCAT_HOME} of course..just a copy paste artifact.. :D On 28 February 2011 12:21, Savvas-Andreas Moysidis < savvas.andreas.moysi...@googlemail.com> wrote: > Hi Rajini, > > We use the following script ran from within {TOMCAT_HOME}\bin d

Re: Create a tomcat service.

2011-02-28 Thread Savvas-Andreas Moysidis
Hi Rajini, We use the following script ran from within {TOMCAT_HOME}\bin directory to create service instances (assuming you are targeting Windows Server environments..): cd "C:\Program Files\Apache Software Foundation\{TOMCAT_HOME}\bin" set CATALINA_BASE="C:\Program Files\Apache Software Founda

Re: How to handle special character in filter query

2011-02-26 Thread Savvas-Andreas Moysidis
Hello, Regarding HTTP specific characters(like spaces and &) , you'll need to URL-encode those if you are firing queries directly to Solr but you don't need to do so if you are using a Solr client such as SolrJ. Regards, - Savvas On 26 February 2011 03:11, cyang2010 wrote: > How to handle spec

Re: [ANN] new SolrMeter release

2011-02-23 Thread Savvas-Andreas Moysidis
Nice! will definitely give it a try! :) On 23 February 2011 22:55, Lance Norskog wrote: > Cool! > > On 2/23/11, Tomás Fernández Löbbe wrote: > > Hi All, I'm happy to announce a new release of SolrMeter, an open source > > stress test tool for Solr. > > > > You can obtain the code or executable

Re: fq field with facets

2011-02-23 Thread Savvas-Andreas Moysidis
Hi Eric, could you please let us know where can we find more info about this notation ( fq={!field f=category})? What is it called, how to use it etc? Is there a wiki page? Thanks, - Savvas On 23 February 2011 14:17, Erik Hatcher wrote: > Try - > > fq={!field f=category} > > You can also try

Re: fq field with facets

2011-02-23 Thread Savvas-Andreas Moysidis
Hello, you could try wrapping your fq terms in double quotes as in: ?q=home&fq=category:"Appartement > Sale" On 23 February 2011 13:25, Rosa (Anuncios) wrote: > Hi, > > I'm trying to reduce results from facets. (by category with my schema) > > My category field is String type in my schema.xml.

Re: SolrException x undefined field

2011-02-16 Thread Savvas-Andreas Moysidis
o da S. Souza > °v° Linux user #375225 > /(_)\ http://counter.li.org/ > ^ ^ > > > > On Wed, Feb 16, 2011 at 9:16 AM, Savvas-Andreas Moysidis < > savvas.andreas.moysi...@googlemail.com> wrote: > > > Hi, > > > > If you have an Application layer

Re: SolrException x undefined field

2011-02-16 Thread Savvas-Andreas Moysidis
Hi, If you have an Application layer and are not directly hitting Solr then maybe this functionality could be implemented in Validation layer prior to making the Solr call ? Cheers, - Savvas On 16 February 2011 10:23, Leonardo Souza wrote: > Hi, > > We are using solr 1.4 in a big project. Now

Re: Concurrent updates/commits

2011-02-09 Thread Savvas-Andreas Moysidis
Thanks very much Em. - Savvas On 9 February 2011 16:22, Savvas-Andreas Moysidis < savvas.andreas.moysi...@googlemail.com> wrote: > Yes, we'll probably go towards that path as our index files are relatively > small, so auto warming might not be extremely useful in our ca

Re: Concurrent updates/commits

2011-02-09 Thread Savvas-Andreas Moysidis
specially with warming > queries. Solr creates the index, then warms it, then makes it available for > regular queries. > > If you are creating indexes frequently, don't bother warming. > > wunder > == > Walter Underwood > Lead Engineer, MarkLogic > > On Feb 9, 20

Re: Concurrent updates/commits

2011-02-09 Thread Savvas-Andreas Moysidis
t modifications of client1 got committed by > client2's commit before client1 asks for a commit." > > As far as I understand Solr commit, they are serialized by design. And > committing too often could lead you to trouble if you have many warm-up > queries (?). > >

Re: General question about Solr Caches

2011-02-09 Thread Savvas-Andreas Moysidis
Hi Hoss, Ok, that makes much more sense now. I was under the impression that values were copied as well which seemed a bit odd.. unless you have to deal with a use case similar to yours. :) Cheers, - Savvas On 9 February 2011 02:25, Chris Hostetter wrote: > : In my understanding, the Current I

Re: Scoring: Precedent for a Rules-/Priority-based Approach?

2011-02-08 Thread Savvas-Andreas Moysidis
Hi Tavi, In my understanding the scoring formula Lucene (and therefore Solr) uses is based on a mathematical model which is proven to work for general purpose full text searching. The real challenge, as you mention, comes when you need to achieve high quality scoring based on the domain you are wo

General question about Solr Caches

2011-02-08 Thread Savvas-Andreas Moysidis
Hello, I am going through the wiki page related to cache configuration http://wiki.apache.org/solr/SolrCaching and I have a question regarding the general cache architecture and implementation: In my understanding, the Current Index Searcher uses a cache instance and when a New Index Searcher

Re: How to use q.op

2011-02-05 Thread Savvas-Andreas Moysidis
Hi Bagesh, Dismax uses a strategy called Min-Should-Match which emulates the binary operator in the Standard Handler. In a nutshell, this parameter (called mm) specifies how many of the entered terms need to be present in your matched documents. You can either specify an absolute number or a perce

Re: Index Not Matching

2011-02-03 Thread Savvas-Andreas Moysidis
urse :-) ) > > > > At first I thought it could be a schema problem, but we went though it > > with a fine comb and compared it to the one in our stage environment. > > What is really weird is that I grabbed one of the product ID that are > &g

Re: Index Not Matching

2011-02-03 Thread Savvas-Andreas Moysidis
when > indexing if this is the case. No connection errors in the logs. > > > > -Original Message- > From: Savvas-Andreas Moysidis > [mailto:savvas.andreas.moysi...@googlemail.com] > Sent: Thursday, February 03, 2011 4:26 PM > To: solr-user@lucene.apache.org

Re: Index Not Matching

2011-02-03 Thread Savvas-Andreas Moysidis
Hello, Are you definitely positive your database isn't updated after you index your data? Are you querying against the same field(s) specifying the same criteria both in Solr and in the database? Any chance you might be pointing to a dev/test instance of Solr ? Regards, - Savvas On 3 February 20

Re: facet.mincount

2011-02-03 Thread Savvas-Andreas Moysidis
dan sutton wrote: > facet.mincount is grouped only under field faceting parameters not > date faceting parameters > > On Thu, Feb 3, 2011 at 11:08 AM, Savvas-Andreas Moysidis > wrote: > > Hi Dan, > > > > I'm probably just not able to spot this, but where does t

Re: facet.mincount

2011-02-03 Thread Savvas-Andreas Moysidis
; I don't think facet.mincount works with date faceting, see here: > > > > http://wiki.apache.org/solr/SimpleFacetParameters > > > > Dan > > > > On Thu, Feb 3, 2011 at 10:11 AM, Isan Fulia > > wrote: > > > Any query followed by > > > &

Re: facet.mincount

2011-02-03 Thread Savvas-Andreas Moysidis
could you post the query you are submitting to Solr? On 3 February 2011 09:33, Isan Fulia wrote: > Hi all, > Even after making facet.mincount=1 , it is showing the results with count = > 0. > Does anyone know why this is happening. > > -- > Thanks & Regards, > Isan Fulia. >

Re: Search for FirstName with first Char uppercase followed by * not giving result; getting result with all lowercase and *

2011-01-30 Thread Savvas-Andreas Moysidis
Hi Mark, "When I indexed *George *it was also finally analyzed and stored as *george* Theny why is it that I don't get a match as per the analysis report I had" your indexed term is george but you search for George* which does not go through the same analysis process as it did when it was indexed

Re: Searchers and Warmups

2011-01-14 Thread Savvas-Andreas Moysidis
Hi David, maybe the wiki page on caching could be helpful: http://wiki.apache.org/solr/SolrCaching#newSearcher_and_firstSearcher_Event_Listeners Regards, - Savvas On 14 January 2011 00:08, David Cramer wrote

Re: SolrJ Question about Bad Request Root cause error

2011-01-11 Thread Savvas-Andreas Moysidis
good point! that's an enhancement we would definitely welcome as well. currently, we too have to remote desktop to the Sol machine and search through the logs.. Any thoughts? Cheers, -- Savvas On 11 January 2011 19:59, roz dev wrote: > Hi All > > We are using SolrJ client (v 1.4.1) to integra

Re: Lower level filtering

2010-12-15 Thread Savvas-Andreas Moysidis
It might not be practical in your case, but is it possible to get from that other system, a list of ids the user is *not* allow to see and somehow invert the logic in the filter? Regards, -- Savvas. On 15 December 2010 14:49, Michael Owen wrote: > > Hi all, > I'm currently using Solr and I've g

Re: [DIH] Example for SQL Server

2010-12-15 Thread Savvas-Andreas Moysidis
Hi Adam, we are using DIH to index off an SQL Server database(the freeby SQLExpress one.. ;) ). We have defined the following in our %TOMCAT_HOME%\solr\conf\data-config.xml: We downloaded a JDBC driver from here http://jtds.sourceforge.net/faq.html and found it to be a quite stab

Re: How to get all the search results?

2010-12-06 Thread Savvas-Andreas Moysidis
ahhh, right..in dismax, you pre-define the fields that will be searched upon is that right? is it also true that the query is parsed and all special characters escaped? On 6 December 2010 16:25, Peter Karich wrote: > for dismax just pass an empty query all q= or none at all > > > Hello, >> >>

Re: How to get all the search results?

2010-12-06 Thread Savvas-Andreas Moysidis
Hello, shouldn't that query syntax be *:* ? Regards, -- Savvas. On 6 December 2010 16:10, Solr User wrote: > Hi, > > First off thanks to the group for guiding me to move from default search > handler to dismax. > > I have a question related to getting all the search results. In the past > with

Re: Joining Fields in and Index

2010-12-02 Thread Savvas-Andreas Moysidis
Hi, If you are able to do a full re-index then you could index the full names and not the codes. When you later facet on the Country field you'll get the actual name rather than the code. If you are not able to re-index then probably this conversion could be added at your application layer prior t

Re: Troubles with forming query for solr.

2010-12-02 Thread Savvas-Andreas Moysidis
Hello, would something similar along those lines: (field1:term AND field2:term AND field3:term)^2 OR (field1:term AND field2:term)^0.8 OR (field2:term AND field3:term)^0.5 work? You'll probably need to experiment with the boost values to get the desired result. Another option could be investigat

Re: Boost on newer documents

2010-11-30 Thread Savvas-Andreas Moysidis
o do a dual-sort. > > I like the idea of using one of the dismax parameters (bf) to in-effect > increase the boost on a newer document. > > Thanks for all replies, most useful. > > > -----Original Message- > From: Savvas-Andreas Moysidis [mailto: > savvas.andreas.m

Re: Boost on newer documents

2010-11-30 Thread Savvas-Andreas Moysidis
hi, I might not understand your case right but can you not add an extra publishedDate field and then specify a secondary (after relevance) sort by that? On 30 November 2010 08:05, wrote: > You could also put a short representation of the data (I suggest days since > 01.01.2010) as payload and c

Bug in solrJ when retrieving results?

2010-11-24 Thread Savvas-Andreas Moysidis
Hello, We think we've come across a bug in solrj? The following is a toString() dump of a QueryResponse object we are getting: {responseHeader={status=0,QTime=0,params={sort=creationDate asc,start=30,q=songTitle:(mad dog) AND creationDate:[123750720 TO 123802559],wt=javabin,rows=10,versio

Re: SOLR and secure content

2010-11-23 Thread Savvas-Andreas Moysidis
Sounds like a good plan. I'd probably also set multiple cores for each website. This could give you more accurate results scoring. Good question about the "required" configuration option.. any input? Although on the other hand, this is a rule which seems to better fit in your application's Validat

Re: SOLR and secure content

2010-11-22 Thread Savvas-Andreas Moysidis
maybe this older thread on Modeling Access Control might help: http://lucene.472066.n3.nabble.com/Modelling-Access-Control-td1756817.html#a1761482 Regards, -- Savvas On 22 November 2010 18:53, Jos Janssen wrote: > > Hi, > > We plan to make an application layer in PHP which will communicate to

Re: SOLR and secure content

2010-11-22 Thread Savvas-Andreas Moysidis
Hi, Could you elaborate a bit more on how you access Solr? are you making direct Solr calls or is the communication directed through an application layer? On 22 November 2010 11:05, Jos Janssen wrote: > > Hi, > > We are currently investigating how to setup a correct solr server for our > goals.

Re: Searching with acronyms

2010-11-15 Thread Savvas-Andreas Moysidis
yes, a synonyms filter should allow you to achieve what you want. On 15 November 2010 03:14, sivaprasad wrote: > > Hi, > > I have a requirement where a user enters acronym of a word, then the search > results should come for the expandable word.Let us say. If the user enters > 'TV', the search r

Re: Search with accent

2010-11-10 Thread Savvas-Andreas Moysidis
have you tried using a TokenFilter which removes accents both at indexing and searching time? If you index terms without accents and search the same way you should be able to find all documents as you require. On 10 November 2010 20:25, Tomas Fernandez Lobbe wrote: > It looks like ISOLatin1Acce

Re: Search with accent

2010-11-10 Thread Savvas-Andreas Moysidis
have you tried using a TokenFilter which removes accents both at indexing and searching time? If you index terms without accents and search the same way you should be able to find all documents as you require. On 10 November 2010 20:08, Claudio Devecchi wrote: > Tomas, > > Let me try to explain

Re: Wildcard weirdness

2010-11-05 Thread Savvas-Andreas Moysidis
strange..my second guess would be that stemming could be the reason but if your analyser(s) emit the same values you use for searching that's odd.. could you post your schema definition for the surname field? On 5 November 2010 17:33, C0re wrote: > > Hi Savvas, > > Thanks for the reply. Yep I'v

Re: Wildcard weirdness

2010-11-05 Thread Savvas-Andreas Moysidis
One place to start would be the Analysis page http://{your machine}:{port}/solr/admin/analysis.jsp?highlight=on There you can see exactly what happens to your query as it being moved down the Analysis chain. In my knowledge, no analysis is performed on wildcarded terms so my guess would be that th

Re: Commit/Optimise question

2010-10-31 Thread Savvas-Andreas Moysidis
I confess I don't know the revision number > "recent" refers to, perhaps only trunk... > > HTH > Erick > > On Thu, Oct 28, 2010 at 9:56 AM, Savvas-Andreas Moysidis < > savvas.andreas.moysi...@googlemail.com> wrote: > > > Hello, > > > >

Re: indexing '-

2010-10-31 Thread Savvas-Andreas Moysidis
One way to view how your Tokenizers/Filters chain transforms your input terms, is to use the analysis page of the Solr admin web application. This is very handy when troubleshooting issues related to how terms are indexed. On 31 October 2010 17:13, PeterKerk wrote: > > I already tried the normal

Re: Natural string sorting

2010-10-29 Thread Savvas-Andreas Moysidis
I think string10 is before string2 in lexicographic order? On 29 October 2010 09:18, RL wrote: > > Just a quick question about natural sorting of strings. > > I've a simple dynamic field in my schema: > > omitNorms="true"/> > omitNorms="true"/> > > There are 3 indexed strings for example > str

Commit/Optimise question

2010-10-28 Thread Savvas-Andreas Moysidis
Hello, We currently index our data through a SQL-DIH setup but due to our model (and therefore sql query) becoming complex we need to index our data programmatically. As we didn't have to deal with commit/optimise before, we are now wondering whether there is an optimal approach to that. Is there

Re: Stored or indexed?

2010-10-28 Thread Savvas-Andreas Moysidis
In our case, we just store a database id and do a secondary db query when displaying the results. This is handy and leads to a more centralised architecture when you need to display properties of a domain object which you don't index/search. On 28 October 2010 05:02, kenf_nc wrote: > > Interesti

Re: How do I this in Solr?

2010-10-26 Thread Savvas-Andreas Moysidis
If I get your question right, you probably want to use the AND binary operator as in "samsung AND andriod AND GPS" or "+samsung +andriod +GPS" On 26 October 2010 14:07, Varun Gupta wrote: > Hi, > > I have lot of small documents (each containing 1 to 15 words) indexed in > Solr. For the search qu

Re: Modelling Access Control

2010-10-23 Thread Savvas-Andreas Moysidis
Pushing ACL logic outside Solr sounds like a prudent choice indeed as in, my opinion, all of the business rules/conceptual logic should reside only within the code boundaries. This way your domain will be easier to model and your code to read, understand and maintain. More information on Filter Qu

Re: different results depending on result format

2010-10-22 Thread Savvas-Andreas Moysidis
strange..are you absolutely sure the two queries are directed to the same Solr instance? I'm running the same query from the admin page (which specifies the xml format) and I get the exact same results as solrj. On 21 October 2010 22:25, Mike Sokolov wrote: > quick follow-up: I also notice that

Re: query between two date

2010-10-18 Thread Savvas-Andreas Moysidis
ok, I see now..well, the only query that comes to mind is something like: check-in date:[2010-10-19T00:00:00Z TO *] AND check-out date:[* TO 2010-10-21T00:00:00Z] would something like that work? On 18 October 2010 11:04, nedaha wrote: > > The exact query that i want is: > > check-in date >= 201

Re: query between two date

2010-10-18 Thread Savvas-Andreas Moysidis
ok, maybe don't get this right.. are you trying to match something like check-in date > 2010-10-19T00:00:00Z AND check-out date < 2010-10-21T00:00:00Z *or* check-in date = 2010-10-19T00:00:00Z AND check-out date = 2010-10-21T00:00:00Z? On 18 October 2010 10:05, nedaha wrote: > > Thanks for you

Re: query between two date

2010-10-18 Thread Savvas-Andreas Moysidis
You'll have to supply your dates in a format Solr expects (e.g. 2010-10-19T08:29:43Z and not 2010-10-19). If you don't need millisecond granularity you can use the DateMath syntax to specify that. Please, also check http://wiki.apache.org/solr/SolrQuerySyntax. On 17 October 2010 10:54, nedaha wr

Re: Solr Fuzzy

2010-10-14 Thread Savvas-Andreas Moysidis
Hi, yes, Solr does support fuzzy queries by using the Levenstein Distance algorithm: http://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance You can specify a fuzzy query by adding a tilde (~) symbol at the end of your query as in title: Solr~ You can even specify a proximity threshold

Re: Quoting special characters?

2010-10-14 Thread Savvas-Andreas Moysidis
If I understand your problem right what you probably need is to escape those characters: http://lucene.apache.org/java/2_9_1/queryparsersyntax.html#Escaping Special Characters On 14 October 2010 14:36, Igor Chudov wrote: > Let's say that I submit a query for a MoreLikeThis search. The query > co

Re: check if field CONTAINS a value, as opposed to IS of a value

2010-10-14 Thread Savvas-Andreas Moysidis
correct, it show the transformations that happen to your indexed term (or query term if you use the *Field value (query)* box ) after each Tokenizer/Filter is executed. On 14 October 2010 14:40, PeterKerk wrote: > > Awesome again! > > And for my understanding, I type a single word "Boston" and t

Re: check if field CONTAINS a value, as opposed to IS of a value

2010-10-14 Thread Savvas-Andreas Moysidis
yep, the Solr Admin web-app provides functionality that does exactly that..it can reached@ http:// {serverName}:{serverPort}/solr/admin/analysis.jsp On 14 October 2010 14:28, PeterKerk wrote: > > It DOES work :) > > Oh and on the filtersis there some sort of debug/overview tool to see > what

Re: check if field CONTAINS a value, as opposed to IS of a value

2010-10-14 Thread Savvas-Andreas Moysidis
I think this should work..It might also be a good idea to investigate how exactly each filter in the chain modifies your original text..this way you will be able to better understand why certain queries match certain documents. On 14 October 2010 14:18, PeterKerk wrote: > > Correct, thanks! > >

Re: check if field CONTAINS a value, as opposed to IS of a value

2010-10-14 Thread Savvas-Andreas Moysidis
verbatim from schema.xml: " " so basically what this means is that when you index "Hello there mate" the only text that is indexed and therefore searchable is the exact phrase "Hello there mate" and *not* the terms Hello - there - mate. What you need is a solr.TextField based type which splits (

Re: check if field CONTAINS a value, as opposed to IS of a value

2010-10-14 Thread Savvas-Andreas Moysidis
looks like you are not tokenizing your field properly. What does your schema.xml look like? On 14 October 2010 13:01, Allistair Crossley wrote: > actuall no you don't .. if you want hi in a sentence of hi there this is me > this is just normal tokenizing and should work .. check your field > typ

Re: Strange search result (or lack of)

2010-10-08 Thread Savvas-Andreas Moysidis
Hello, Try searching for name_de:(das urteil). A search for name_de:das urteil will search for "das" in *name_de* and for "urteil" in the default field (e.g. "catch all" field). Hope that helps, -- Savvas On 8 October 2010 09:00, Thomas Kellerer wrote: > Hi, > > I have the following field defi

Re: SOLRJ - Searching text in all fields of a Bean

2010-10-08 Thread Savvas-Andreas Moysidis
Hello, What does your schema look like? Have you defined a "catch all" field and copy every value from all your other fields in it with a directive? Cheers, -- Savvas On 8 October 2010 08:30, Subhash Bhushan wrote: > Hi, > > I have two fields in the bean class, id and title. > After adding th

Re: Re: Umlaut in facet name attribute

2010-10-05 Thread Savvas-Andreas Moysidis
on the > unanalyzed counterparts. > > -Original message- > From: Savvas-Andreas Moysidis > Sent: Wed 06-10-2010 00:46 > To: solr-user@lucene.apache.org; > Subject: Re: Umlaut in facet name attribute > > Hello, > > It seems that your analysis process removes pu

Re: Umlaut in facet name attribute

2010-10-05 Thread Savvas-Andreas Moysidis
Hello, It seems that your analysis process removes punctuation and therefore indexes terms without it. What you see in the faceted result is the text that has been indexed. If you select a Tokenizer/Token Filter which preserves punctuation you should be able to see what you want. Cheers, -- Savv